commit | 1367bc82858018fd1a5a81b8fad4628e7163d1bf | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Thu May 31 11:41:30 2018 +0000 |
committer | Christoph Hellwig <hch@lst.de> | Thu May 31 18:46:46 2018 +0200 |
tree | a56ba69f7fd73ceb73a6cdca58c2dbaa01e77184 | |
parent | 81cf54e01a3d2eb47bee78a7579fc4dd0912f347 [diff] |
nvmet: fix error return code in nvmet_file_ns_enable() Fix to return error code -ENOMEM from the memory alloc fail error handling case instead of 0, as done elsewhere in this function. 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>