NVMe: fix error return checking from blk_mq_alloc_request()
authorJens Axboe <axboe@fb.com>
Wed, 10 Dec 2014 20:02:44 +0000 (13:02 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 10 Dec 2014 20:02:44 +0000 (13:02 -0700)
commit97fe383222cb8a01fb67a8823498ad2edcc20b35
tree3ae928bfdb153db22ab0cf3102ad3002c7e1fed9
parentc87fd5407e1aa1cfc6b393b03bf67010cf643dbe
NVMe: fix error return checking from blk_mq_alloc_request()

We return an error pointer or the request, not NULL. Half
the call paths got it right, the others didn't. Fix those up.

Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c