Re: [Qemu-devel] [PATCH] virtio-net: only delete bh that existed

2013-11-06 Thread Jason Wang
On 11/06/2013 07:17 PM, Michael S. Tsirkin wrote: > On Wed, Nov 06, 2013 at 04:58:08PM +0800, Jason Wang wrote: >> We delete without check whether it existed during exit. This will lead NULL >> pointer deference since it was created conditionally depends on guest driver >> status and features. So a

Re: [Qemu-devel] [PATCH] virtio-net: only delete bh that existed

2013-11-06 Thread Michael S. Tsirkin
On Wed, Nov 06, 2013 at 04:58:08PM +0800, Jason Wang wrote: > We delete without check whether it existed during exit. This will lead NULL > pointer deference since it was created conditionally depends on guest driver > status and features. So add a check of existence before trying to delete it. >

[Qemu-devel] [PATCH] virtio-net: only delete bh that existed

2013-11-06 Thread Jason Wang
We delete without check whether it existed during exit. This will lead NULL pointer deference since it was created conditionally depends on guest driver status and features. So add a check of existence before trying to delete it. Cc: qemu-sta...@nongnu.org Signed-off-by: Jason Wang --- hw/net/vi