diff options
author | 2022-10-21 17:41:26 -0300 | |
---|---|---|
committer | 2022-12-28 05:28:11 -0500 | |
commit | a26116c1e74028914f281851488546c91cbae57d (patch) | |
tree | b1fba6dabe7af5a7e42add322392e4387507d4ad /tools/perf/scripts/python/export-to-postgresql.py | |
parent | vdpa_sim_net: should not drop the multicast/broadcast packet (diff) | |
download | wireguard-linux-a26116c1e74028914f281851488546c91cbae57d.tar.xz wireguard-linux-a26116c1e74028914f281851488546c91cbae57d.zip |
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: stable@vger.kernel.org
Fixes: 0e9911fa768f ("virtio-blk: support mq_ops->queue_rqs()")
Signed-off-by: Rafael Mendonca <rafaelmendsr@gmail.com>
Message-Id: <20221021204126.927603-1-rafaelmendsr@gmail.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Suwan Kim <suwan.kim027@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions