]> Git Repo - qemu.git/commit
tap: clear vhost_net backend on cleanup
authorMichael S. Tsirkin <[email protected]>
Wed, 27 Oct 2010 18:03:43 +0000 (20:03 +0200)
committerAnthony Liguori <[email protected]>
Tue, 16 Nov 2010 14:40:07 +0000 (08:40 -0600)
commit43849424cff82803011fad21074531a1101e514e
tree4229dabaade45f130fdb0c2022347ed4af16fd16
parent788954270d339b4b271e1a537a481e7068ba3591
tap: clear vhost_net backend on cleanup

Frontends calling tap_get_vhost_net get an invalid pointer after the
peer backend has been deleted. Jason Wang <[email protected]> reports
this leading to a crash in ack_features when we remove the vhost-net
bakend of a virtio nic.

The fix is simply to clear the backend pointer.

Signed-off-by: Michael S. Tsirkin <[email protected]>
net/tap.c
This page took 0.023833 seconds and 4 git commands to generate.