OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
844b5ce
)
virtio: use unsigned int for counting bytes in vq
author
Amit Shah
<amit.shah@redhat.com>
Mon, 24 Sep 2012 18:35:14 +0000
(
00:05
+0530)
committer
Michael S. Tsirkin
<mst@redhat.com>
Fri, 28 Sep 2012 10:16:27 +0000
(12:16 +0200)
The virtqueue_avail_bytes() function counts bytes in an int. Use an
unsigned int instead.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio.c
patch
|
blob
|
history
diff --git
a/hw/virtio.c
b/hw/virtio.c
index
b5764bb
..
cfad363
100644
(file)
--- a/
hw/virtio.c
+++ b/
hw/virtio.c
@@
-338,7
+338,7
@@
static unsigned virtqueue_next_desc(target_phys_addr_t desc_pa,
int virtqueue_avail_bytes(VirtQueue *vq, int in_bytes, int out_bytes)
{
unsigned int idx;
- int total_bufs, in_total, out_total;
+
unsigned
int total_bufs, in_total, out_total;
idx = vq->last_avail_idx;