Brian Foley
d78b519f6b
virtio_mmio: Don't attempt to create empty virtqueues
...
If a virtio device reports a QueueNumMax of 0, vring_new_virtqueue()
doesn't check this, and thanks to an unsigned (i < num - 1) loop
guard, scribbles over memory when initialising the free list.
Avoid by not trying to create zero-descriptor queues, as there's no
way to do any I/O with one.
Signed-off-by: Brian Foley <brian.foley@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-09-28 15:05:16 +09:30
..
2012-09-14 20:54:44 +02:00
2012-07-27 15:14:26 -07:00
2012-09-13 00:24:29 -04:00
2012-08-06 13:29:57 -07:00
2012-08-28 21:01:01 +02:00
2012-08-02 13:51:46 -04:00
2012-09-28 15:05:14 +09:30
2012-08-27 08:36:42 -05:00
2012-09-28 15:05:13 +09:30
2012-07-30 17:25:13 -07:00
2012-08-21 16:45:02 -07:00
2012-07-16 23:23:52 -07:00
2012-08-23 17:02:42 +02:00
2012-08-17 19:37:08 +02:00
2012-09-12 07:14:17 +08:00
2012-08-13 10:15:22 +05:30
2012-07-29 21:11:05 -03:00
2012-09-16 13:22:21 -07:00
2012-07-30 09:32:39 -07:00
2012-07-31 19:07:42 -07:00
2012-09-01 12:52:24 +02:00
2012-09-14 15:45:01 +10:00
2012-09-07 12:29:38 -07:00
2012-07-31 19:07:42 -07:00
2012-09-12 06:42:11 -07:00
2012-09-10 13:19:25 +03:00
2012-09-14 17:55:57 -07:00
2012-08-21 14:54:42 -07:00
2012-08-17 19:37:14 +02:00
2012-07-12 07:54:45 -07:00
2012-08-27 21:15:25 +01:00
2012-09-14 10:42:52 -07:00
2012-09-08 16:20:59 -07:00
2012-08-10 11:34:08 +02:00
2012-09-13 14:58:54 -04:00
2012-08-13 14:34:02 +08:00
2012-09-28 15:05:15 +09:30
2012-08-18 09:51:42 +10:00
2012-08-21 16:54:38 -07:00
2012-07-30 17:25:17 -07:00
2012-09-16 13:22:21 -07:00
2012-08-21 16:45:03 -07:00
2012-09-04 13:58:11 -04:00
2012-09-04 09:40:26 +03:00
2012-09-17 13:21:02 -07:00
2012-07-09 16:42:24 -04:00
2012-08-20 02:16:00 -07:00
2012-07-24 16:17:07 -07:00
2012-08-23 10:53:08 -06:00
2012-07-27 15:14:26 -07:00
2012-08-17 11:09:58 +02:00
2012-09-13 16:46:31 -04:00
2012-08-02 11:52:39 -07:00
2012-07-30 17:25:21 -07:00
2012-09-10 17:04:38 +02:00
2012-08-21 16:45:03 -07:00
2012-09-16 13:22:21 -07:00
2012-09-28 15:05:15 +09:30
2012-09-28 15:05:15 +09:30
2012-09-17 15:00:38 -07:00
2012-09-28 15:05:15 +09:30
2012-08-22 09:42:54 +04:00
2012-08-09 13:21:05 +09:00
2012-08-25 11:45:04 -07:00
2012-09-16 13:22:21 -07:00
2012-09-07 11:32:54 -07:00
2012-07-31 18:08:25 -07:00
2012-09-05 12:44:44 -07:00
2012-09-12 11:12:31 -07:00
2012-08-22 10:26:42 -04:00
2012-08-20 14:52:11 -07:00
2012-08-23 12:37:22 +00:00
2012-09-28 15:05:16 +09:30
2012-07-19 15:39:39 -07:00
2012-08-16 12:33:59 -07:00
2012-08-29 17:13:06 +02:00
2012-09-06 09:22:02 -04:00
2012-07-15 19:56:38 +02:00
2012-07-31 08:16:22 -06:00
2012-07-31 08:16:22 -06:00