diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-08-27 13:00:23 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-27 16:45:48 +0300 |
commit | 3375dca0b542c747d29655cf52f7b2741ecebe0e (patch) | |
tree | 429fd0e19236d46ed895234a9261e4fbbd61ed6a /scripts/documentation-file-ref-check | |
parent | 7b05bf771084ff788243b78f51bc2c820730951c (diff) | |
download | linux-3375dca0b542c747d29655cf52f7b2741ecebe0e.tar.xz |
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: 262d431f9000 ("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>
Diffstat (limited to 'scripts/documentation-file-ref-check')
0 files changed, 0 insertions, 0 deletions