From: Dan Carpenter Date: Wed, 14 May 2014 12:54:18 +0000 (+0300) Subject: mtip32xx: blk_mq_init_queue() returns an ERR_PTR X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a8a642ccd2e86248ae23c5d762dac67eaea02423;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jens Axboe --- 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: /* 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;