Commit a8a642cc authored by Dan Carpenter's avatar Dan Carpenter Committed by Jens Axboe

mtip32xx: blk_mq_init_queue() returns an ERR_PTR

We changed this from blk_alloc_queue_node() to blk_mq_init_queue() so
the check needs to be updated as well.

Fixes: ffc771b3 ('mtip32xx: convert to use blk-mq')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent ffc771b3
......@@ -3890,7 +3890,7 @@ static int mtip_block_initialize(struct driver_data *dd)
/* Allocate the request queue. */
dd->queue = blk_mq_init_queue(&dd->tags);
if (dd->queue == NULL) {
if (IS_ERR(dd->queue)) {
dev_err(&dd->pdev->dev,
"Unable to allocate request queue\n");
rv = -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment