]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/nvme/target/core.c
Merge tag 'freevxfs-for-4.8' of git://git.infradead.org/users/hch/freevxfs
[mirror_ubuntu-bionic-kernel.git] / drivers / nvme / target / core.c
index e0b3f016672298b730130e3dc6ace3373f578744..8a891ca53367eaa6498f8326e745b081a110157e 100644 (file)
@@ -895,7 +895,7 @@ struct nvmet_subsys *nvmet_subsys_alloc(const char *subsysnqn,
        subsys->type = type;
        subsys->subsysnqn = kstrndup(subsysnqn, NVMF_NQN_SIZE,
                        GFP_KERNEL);
-       if (IS_ERR(subsys->subsysnqn)) {
+       if (!subsys->subsysnqn) {
                kfree(subsys);
                return NULL;
        }