]> git.baikalelectronics.ru Git - kernel.git/commit
pd: fix a NULL vs IS_ERR() check
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 27 Aug 2021 10:00:23 +0000 (13:00 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 27 Aug 2021 13:45:48 +0000 (07:45 -0600)
commitf0c440be4ecc161d442698644a9ea3c419ac4edf
tree429fd0e19236d46ed895234a9261e4fbbd61ed6a
parentd3460acb6820bf810c7cd0837a9f7129c50cf5ea
pd: fix a NULL vs IS_ERR() check

blk_mq_alloc_disk() returns error pointers, it doesn't return NULL
so correct the check.

Fixes: 6042d1c5b496 ("pd: use blk_mq_alloc_disk and blk_cleanup_disk")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20210827100023.GB9449@kili
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/paride/pd.c