Skip to content

Commit

Permalink
mtip32xx: blk_mq_init_queue() returns an ERR_PTR
Browse files Browse the repository at this point in the history
We changed this from blk_alloc_queue_node() to blk_mq_init_queue() so
the check needs to be updated as well.

Fixes: ffc771b ('mtip32xx: convert to use blk-mq')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Dan Carpenter authored and Jens Axboe committed May 14, 2014
1 parent ffc771b commit a8a642c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/block/mtip32xx/mtip32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a8a642c

Please sign in to comment.