lightnvm: propagate right error code to target
authorJavier González <jg@lightnvm.io>
Mon, 26 Jun 2017 09:57:11 +0000 (11:57 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Jun 2017 22:24:53 +0000 (16:24 -0600)
commit613fa267c3fa2bdf92d005a4d0fa911bc84f17f4
tree9db9a0d7c16a6da3dfd03d194a69e434c686fd35
parent3e505afb45f57e84adabf7a3b0b705c7b04ad59c
lightnvm: propagate right error code to target

If nvme_alloc_request fails, propagate the right error, instead of
assuming ENOMEM.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/lightnvm.c