diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-05-31 01:55:58 +0000 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-05-31 18:46:46 +0200 |
commit | 81cf54e01a3d2eb47bee78a7579fc4dd0912f347 (patch) | |
tree | 8963abd0e08d4b325db7b65e78297fa1f7454fd0 /drivers/nvme/target | |
parent | cc456b65b739e17e8b1e6b61cc2f014f225ba466 (diff) |
nvmet: fix a typo in nvmet_file_ns_enable()
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>
Diffstat (limited to 'drivers/nvme/target')
-rw-r--r-- | drivers/nvme/target/io-cmd-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/io-cmd-file.c b/drivers/nvme/target/io-cmd-file.c index ca1ccf867856..9cff553caa1f 100644 --- a/drivers/nvme/target/io-cmd-file.c +++ b/drivers/nvme/target/io-cmd-file.c @@ -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); } |