summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorChen Gang2014-12-16 21:58:42 +0100
committerStefan Hajnoczi2015-01-12 11:16:23 +0100
commita39d97c7becca5fd679d70d17ae5b1d62b9b5da6 (patch)
tree78168867f05c4403eb5b94f149f93d97e419fd8e /scripts/checkpatch.pl
parenthw/net/xen_nic.c: Need free 'netdev->nic' in net_free() instead of net_discon... (diff)
downloadqemu-a39d97c7becca5fd679d70d17ae5b1d62b9b5da6.tar.gz
qemu-a39d97c7becca5fd679d70d17ae5b1d62b9b5da6.tar.xz
qemu-a39d97c7becca5fd679d70d17ae5b1d62b9b5da6.zip
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>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions