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: ffc771b3ca ('mtip32xx: convert to use blk-mq')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
Dan Carpenter 2014-05-14 15:54:18 +03:00 committed by Jens Axboe
parent ffc771b3ca
commit a8a642ccd2
1 changed files with 1 additions and 1 deletions

View File

@ -3890,7 +3890,7 @@ skip_create_disk:
/* 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;