diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-07-18 14:14:09 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-07-18 13:11:11 -0600 |
commit | fe3333f6953848f1c24e91a1cf70eed026dc3a86 (patch) | |
tree | 6c4e5b0991e2d5f192a538ea2d3a4b9a194455be /drivers/mmc/core | |
parent | d276a22314c2bad9136c5e0b09eb3c8a560e1161 (diff) |
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: cebbe577cb17 ("ublk_drv: fix request queue leak")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/YtVAgedTsQVK1oTM@kili
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/mmc/core')
0 files changed, 0 insertions, 0 deletions