Skip to content
Commit fe3333f6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jens Axboe
Browse files

ublk_drv: fix an IS_ERR() vs NULL check



The blk_mq_alloc_disk_for_queue() doesn't return error pointers, it
returns NULL on error.

Fixes: cebbe577 ("ublk_drv: fix request queue leak")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/YtVAgedTsQVK1oTM@kili


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d276a223
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment