summaryrefslogtreecommitdiff
path: root/drivers/vhost
diff options
context:
space:
mode:
authorYe Guojin <ye.guojin@zte.com.cn>2021-11-17 06:39:55 +0000
committerMichael S. Tsirkin <mst@redhat.com>2021-11-24 19:00:28 -0500
commit0466a39bd0b6c462338f10d18076703d14a552de (patch)
tree55a5d45568f6fd7ae5fb7b122fa375772d3a9e52 /drivers/vhost
parent11708ff92c1dba9aaa59168c46c5317677595942 (diff)
virtio-blk: modify the value type of num in virtio_queue_rq()
This was found by coccicheck: ./drivers/block/virtio_blk.c, 334, 14-17, WARNING Unsigned expression compared with zero num < 0 Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Ye Guojin <ye.guojin@zte.com.cn> Link: https://lore.kernel.org/r/20211117063955.160777-1-ye.guojin@zte.com.cn Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Fixes: 02746e26c39e ("virtio-blk: avoid preallocating big SGL for data") Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'drivers/vhost')
0 files changed, 0 insertions, 0 deletions