]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: fix an error code
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Jul 2016 08:15:26 +0000 (11:15 +0300)
committerJens Axboe <axboe@fb.com>
Thu, 7 Jul 2016 14:37:36 +0000 (08:37 -0600)
commit5b0f040be1614c1df13fc67dd9d808840218e55c
treec6a147005e6f26740ea4d7584adf4cd6d4d549a6
parent53b22c85ba6ba2f43a036c94a67b630aae3beed0
nvmet: fix an error code

We accidentally return zero here when ERR_PTR(-ENOMEM) is intended.

Fixes: ffb9618ad11f ('nvmet: add a generic NVMe target')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/target/configfs.c