]> Git Repo - qemu.git/commit
virtio-net: only delete bh that existed
authorJason Wang <[email protected]>
Wed, 6 Nov 2013 08:58:08 +0000 (16:58 +0800)
committerMichael S. Tsirkin <[email protected]>
Sun, 10 Nov 2013 10:08:38 +0000 (12:08 +0200)
commit6b9b8758c15f3bc2875dbd6e2d03c5362b8d6902
tree41a42ff79dbb27aed1d5b91a9e6be3a6ecae5081
parent04c7d8b8dea724f1007f0f6e76047ff03b4cb24f
virtio-net: only delete bh that existed

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: [email protected]
Signed-off-by: Jason Wang <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/net/virtio-net.c
This page took 0.025674 seconds and 4 git commands to generate.