diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-05-14 08:54:18 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-05-14 10:05:44 -0400 |
commit | a8a642ccd2e86248ae23c5d762dac67eaea02423 (patch) | |
tree | 9e8bc3f329b49bcf258c881505f224c5dc005f45 /drivers/block/mtip32xx/mtip32xx.c | |
parent | ffc771b3ca8b2c03e5e9faa6335b4862108f111f (diff) |
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: ffc771b3ca8b2 ('mtip32xx: convert to use blk-mq')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/mtip32xx/mtip32xx.c')
-rw-r--r-- | drivers/block/mtip32xx/mtip32xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 3a0882ee1642..5979ab3afd81 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c | |||
@@ -3890,7 +3890,7 @@ skip_create_disk: | |||
3890 | 3890 | ||
3891 | /* Allocate the request queue. */ | 3891 | /* Allocate the request queue. */ |
3892 | dd->queue = blk_mq_init_queue(&dd->tags); | 3892 | dd->queue = blk_mq_init_queue(&dd->tags); |
3893 | if (dd->queue == NULL) { | 3893 | if (IS_ERR(dd->queue)) { |
3894 | dev_err(&dd->pdev->dev, | 3894 | dev_err(&dd->pdev->dev, |
3895 | "Unable to allocate request queue\n"); | 3895 | "Unable to allocate request queue\n"); |
3896 | rv = -ENOMEM; | 3896 | rv = -ENOMEM; |