Anthony Liguori
1bc4953ed4
virtio: Fix used_idx wrap-around
...
The more_used() function compares the vq->vring.used->idx with last_used_idx.
Since vq->vring.used->idx is a 16-bit integer, and last_used_idx is an
unsigned int, this results in unpredictable behavior when vq->vring.used->idx
wraps around.
This patch corrects this by changing last_used_idx to the correct type.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au >
2007-11-12 13:59:09 +11:00
..
2007-11-10 14:28:16 -08:00
2007-11-10 00:31:27 -05:00
2007-10-23 19:53:16 -04:00
2007-11-02 08:47:06 +01:00
2007-11-08 08:00:24 +01:00
2007-10-22 02:59:46 -07:00
2007-10-24 13:21:21 +02:00
2007-11-07 04:14:19 -08:00
2007-10-30 21:29:47 -07:00
2007-10-29 17:27:50 -04:00
2007-10-27 00:52:07 -07:00
2007-10-30 08:06:55 -07:00
2007-10-19 11:53:56 -07:00
2007-11-07 01:59:28 +01:00
2007-10-19 11:53:42 -07:00
2007-10-31 13:30:35 +01:00
2007-10-19 20:36:17 -07:00
2007-10-20 01:34:40 +02:00
2007-11-05 21:42:30 +01:00
2007-11-04 14:31:16 +01:00
2007-10-30 15:26:56 -07:00
2007-11-02 19:39:18 -07:00
2007-11-05 15:12:31 -08:00
2007-10-23 15:49:47 +10:00
2007-11-05 21:54:41 +00:00
2007-10-25 15:02:50 +10:00
2007-11-08 14:15:34 +11:00
2007-11-09 13:41:32 +01:00
2007-11-04 21:41:30 -02:00
2007-11-05 15:12:31 -08:00
2007-10-20 01:34:40 +02:00
2007-10-25 17:43:46 -04:00
2007-11-10 11:59:49 +01:00
2007-10-23 19:53:16 -04:00
2007-11-12 13:55:25 +11:00
2007-10-17 21:17:42 -07:00
2007-10-23 09:49:31 +02:00
2007-10-23 19:53:16 -04:00
2007-11-05 13:35:17 -08:00
2007-10-19 11:53:41 -07:00
2007-10-22 19:20:52 -07:00
2007-10-19 11:53:41 -07:00
2007-11-07 20:13:24 +09:00
2007-11-05 11:10:17 +01:00
2007-10-20 15:04:06 -07:00
2007-11-05 13:35:17 -08:00
2007-11-09 15:25:29 -08:00
2007-11-07 11:13:55 +09:00
2007-10-29 07:41:33 -07:00
2007-11-05 15:12:33 -08:00
2007-11-02 08:47:06 +01:00
2007-11-08 23:29:36 +00:00
2007-11-12 13:59:09 +11:00
2007-10-30 14:26:30 -07:00
2007-11-02 19:36:26 -07:00
2007-10-18 14:37:28 -07:00
2007-10-19 23:21:04 +02:00
2007-10-23 15:49:54 +10:00
2007-10-23 16:37:29 -07:00