Ye Guojin cb91c0548f virtio-blk: modify the value type of num in virtio_queue_rq()
commit 0466a39bd0b6c462338f10d18076703d14a552de upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-12 16:35:11 +02:00
..
2021-06-30 12:21:16 -07:00
2021-09-02 15:09:46 -07:00
2021-06-30 12:21:16 -07:00
2021-10-17 06:51:19 -06:00
2021-09-03 22:14:40 -06:00
2021-03-24 06:57:40 -06:00
2021-08-02 13:37:27 -06:00
2021-08-16 10:50:33 -06:00
2021-06-11 11:53:02 -06:00
2021-06-30 12:21:16 -07:00