]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: Fix error handling
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 30 Oct 2016 04:28:27 +0000 (05:28 +0100)
committerJens Axboe <axboe@fb.com>
Sun, 6 Nov 2016 21:14:59 +0000 (14:14 -0700)
commitc3a4967a9e48dd4aeefbb2e16057f57cc0cf2f4a
tree387018dd45b281964a3f1c64766b3efb98a784fc
parentd7b5a2eeea08370d8f054f5cda38dca61f1f4a64
nbd: Fix error handling

'blk_mq_alloc_request()' returns an error pointer in case of error, not
NULL. So test it with IS_ERR.

Fixes: fb099fa0b4cf ("nbd: convert to blkmq")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c