[Qemu-devel] [PATCH] virtio-serial: Fix check for 'assert'; prevent NULL derefs

2010-04-30 Thread Amit Shah
In the flush_queued_data() function, we expect port to be valid. Assert only for port and not port || discard. Reported-by: Juan Quintela Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/virtio-serial-bus.c b/hw/vir

Re: [Qemu-devel] [PATCH] virtio-serial: Fix check for 'assert'; prevent NULL derefs

2010-05-03 Thread Anthony Liguori
On 04/30/2010 06:13 AM, Amit Shah wrote: In the flush_queued_data() function, we expect port to be valid. Assert only for port and not port || discard. Reported-by: Juan Quintela Signed-off-by: Amit Shah Applied. Thanks. Regards, Anthony Liguori --- hw/virtio-serial-bus.c |2 +-