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)
commitf98d9ca17fbddd82980bc20abfabd5b405ecade4
treec6a147005e6f26740ea4d7584adf4cd6d4d549a6
parent1fb470408497382a0cf5311d9fa362202b537ebf
nvmet: fix an error code

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

Fixes: a07b4970f464 ('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