summaryrefslogtreecommitdiffstats
path: root/block/Makefile
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2021-09-09 11:06:08 +0200
committerJens Axboe <axboe@kernel.dk>2021-09-09 22:24:02 +0200
commit221e8360834c59f0c9952630fa5904a94ebd2bb8 (patch)
tree87eba00454997fe9e21557a1b89857c94c9dd51c /block/Makefile
parentblk-mq: allow 4x BLK_MAX_REQUEST_COUNT at blk_plug for multiple_queues (diff)
downloadlinux-221e8360834c59f0c9952630fa5904a94ebd2bb8.tar.xz
linux-221e8360834c59f0c9952630fa5904a94ebd2bb8.zip
n64cart: fix return value check in n64cart_probe()
In case of error, the function devm_platform_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: d9b2a2bbbb4d ("block: Add n64 cart driver") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Link: https://lore.kernel.org/r/20210909090608.2989716-1-yangyingliang@huawei.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/Makefile')
0 files changed, 0 insertions, 0 deletions