Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;