hw/net/xen_nic.c: Set 'netdev->mac' to NULL after free it
commita39d97c7becca5fd679d70d17ae5b1d62b9b5da6
authorChen Gang <gang.chen.5i5j@gmail.com>
Tue, 16 Dec 2014 20:58:42 +0000 (17 04:58 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 12 Jan 2015 10:16:23 +0000 (12 10:16 +0000)
tree78168867f05c4403eb5b94f149f93d97e419fd8e
parentd46858377b822b820946c6b2e3a9153ee0aebd37
hw/net/xen_nic.c: Set 'netdev->mac' to NULL after free it

Since net_init() checks whether 'netdev->mac' is NULL, before alloc it;
net_release() also need set 'netdev->mac' to NULL after free it.

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/xen_nic.c