Prasad J Pandit 973e7170dd virtio: add check for descriptor's mapped address
virtio back end uses set of buffers to facilitate I/O operations.
If its size is too large, 'cpu_physical_memory_map' could return
a null address. This would result in a null dereference while
un-mapping descriptors. Add check to avoid it.

Reported-by: Qinghao Tang <luodalongde@gmail.com>
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2016-09-23 18:51:40 +03:00
..
2016-09-13 18:12:34 +03:00
2016-06-17 16:33:48 +10:00
2016-09-22 18:13:08 +01:00
2016-06-14 15:59:13 +01:00
2016-09-08 18:05:21 +04:00
2016-09-23 12:39:07 +10:00
2016-05-18 15:04:27 +03:00
2016-09-23 11:42:52 +08:00
2016-09-08 18:05:21 +04:00
2016-09-23 14:26:12 +01:00
2016-09-23 11:42:52 +08:00
2016-07-29 00:07:09 +03:00
2016-09-23 14:26:12 +01:00
2016-09-19 12:41:28 +01:00
2016-09-22 18:13:08 +01:00
2016-09-15 15:32:22 +03:00
2016-09-23 11:42:52 +08:00
2016-09-15 15:32:22 +03:00
2016-09-23 11:42:52 +08:00