]> git.proxmox.com Git - mirror_qemu.git/commit - net/net.c
net: Avoid NULL function pointer dereference on cleanup
authorAndreas Färber <afaerber@suse.de>
Tue, 12 Feb 2013 22:16:06 +0000 (23:16 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 13 Feb 2013 17:57:25 +0000 (11:57 -0600)
commitcc2a90432d9cb7546a2c4360ad7200a2fb3af31a
tree1ab3f28a1e606937e4d51abb93145d2ed72cdb19
parent91b0a8f33419573c1d741e49559bfb666fd8b1f0
net: Avoid NULL function pointer dereference on cleanup

The pSeries machine and some other devices don't supply a cleanup
callback. Revert part of 1ceef9f27359cbe92ef124bf74de6f792e71f6fb that
started calling it unconditionally.

Cc: Jason Wang <jasowang@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Message-id: 1360707366-9271-1-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net/net.c