aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorLi Zetao <[email protected]>2023-08-10 16:48:36 +0800
committerJens Axboe <[email protected]>2023-08-10 07:19:23 -0600
commitc8659bbb15cd42577a9b16a23b527436b028c8b2 (patch)
treef4df1ff2ac24d2ecbf7b5c413163afd4ba39739b /lib/test_fortify/write_overflow-strncpy-src.c
parent0ece1d649b6dd615925a72bc1824d6b9fa5b998a (diff)
ublk: Fix signedness bug returning warning
There are two warnings reported by smatch: drivers/block/ublk_drv.c:445 ublk_setup_iod_zoned() warn: signedness bug returning '(-95)' drivers/block/ublk_drv.c:963 ublk_setup_iod() warn: signedness bug returning '(-5)' The type of "blk_status_t" is either be a u32 or u8, but this two functions return a negative value when not supported or failed. Use the error code of the blk module to fix these warnings. Fixes: 29802d7ca33b ("ublk: enable zoned storage support") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Li Zetao <[email protected]> Reviewed-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions