提交 a8a642cc 编写于 作者: D Dan Carpenter 提交者: Jens Axboe

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: ffc771b3 ('mtip32xx: convert to use blk-mq')
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 ffc771b3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册