mtip32xx: blk_mq_init_queue() returns an ERR_PTR
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 May 2014 12:54:18 +0000 (15:54 +0300)
committerJens Axboe <axboe@fb.com>
Wed, 14 May 2014 14:05:44 +0000 (08:05 -0600)
We changed this from blk_alloc_queue_node() to blk_mq_init_queue() so
the check needs to be updated as well.

Fixes: ffc771b3ca8b2 ('mtip32xx: convert to use blk-mq')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c

index 3a0882ee16422bb966781dee6c3517b52b55b098..5979ab3afd81a8e4f9d219f15f6e8d75e2cc1230 100644 (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;
This page took 0.02577 seconds and 5 git commands to generate.