]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
nvmet: fix a typo in nvmet_file_ns_enable()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 31 May 2018 01:55:58 +0000 (01:55 +0000)
committerChristoph Hellwig <hch@lst.de>
Thu, 31 May 2018 16:46:46 +0000 (18:46 +0200)
Fix a typo in nvmet_file_ns_enable().

Fixes: d5eff33ee6f8 ("nvmet: add simple file backed ns support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.e>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/io-cmd-file.c

index ca1ccf8678568a4656f436cddcc45d5278843819..9cff553caa1f32be9e78edb156e2d818ef7d0518 100644 (file)
@@ -34,7 +34,7 @@ int nvmet_file_ns_enable(struct nvmet_ns *ns)
                        O_RDWR | O_LARGEFILE | O_DIRECT, 0);
        if (IS_ERR(ns->file)) {
                pr_err("failed to open file %s: (%ld)\n",
-                               ns->device_path, PTR_ERR(ns->bdev));
+                               ns->device_path, PTR_ERR(ns->file));
                return PTR_ERR(ns->file);
        }