Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1367bc82 authored by Wei Yongjun's avatar Wei Yongjun Committed by Christoph Hellwig
Browse files

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: d5eff33e ("nvmet: add simple file backed ns support")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.e>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 81cf54e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment