aboutsummaryrefslogtreecommitdiff
path: root/kernel/locking/rtmutex.c
diff options
context:
space:
mode:
authorRafael Mendonca <[email protected]>2022-10-21 17:41:26 -0300
committerMichael S. Tsirkin <[email protected]>2022-12-28 05:28:11 -0500
commita26116c1e74028914f281851488546c91cbae57d (patch)
treeb1fba6dabe7af5a7e42add322392e4387507d4ad /kernel/locking/rtmutex.c
parent72455a1142527e607e1d69439f3ffa2ef6d09e26 (diff)
virtio_blk: Fix signedness bug in virtblk_prep_rq()
The virtblk_map_data() function returns negative error codes, however, the 'nents' field of vbr->sg_table is an unsigned int, which causes the error handling not to work correctly. Cc: [email protected] Fixes: 0e9911fa768f ("virtio-blk: support mq_ops->queue_rqs()") Signed-off-by: Rafael Mendonca <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Stefano Garzarella <[email protected]> Reviewed-by: Suwan Kim <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Acked-by: Jason Wang <[email protected]>
Diffstat (limited to 'kernel/locking/rtmutex.c')
0 files changed, 0 insertions, 0 deletions