blk_mq_alloc_request() returns error pointers on error, never NULLs.
Same thing with blk_mq_init_queue(), and also we should set the error
code there.
Fixes: fd8383fd88a2 ('nbd: convert to blkmq')
Signed-off-by: Dan Carpenter
diff --git a/drivers/block/nbd.c
We recently changed from spin_lock_irq() to just spin_lock(). This
return path was overlooked and needs to be updated as well.
Fixes: 0eadf37afc25 ('nbd: allow block mq to deal with timeouts')
Signed-off-by: Dan Carpenter
diff --git a/drivers/block/nbd.c