From: Krishna Kumar Date: Wed, 20 Jul 2011 03:56:02 +0000 (+0000) Subject: virtio_net: Fix panic in virtnet_remove X-Git-Tag: v3.1-rc1~316^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e66f55b3afa290337a47e6ea134ac071c5dd9a7;p=pandora-kernel.git virtio_net: Fix panic in virtnet_remove Fix a panic in virtnet_remove. unregister_netdev has already freed up the netdev (and virtnet_info) due to dev->destructor being set, while virtnet_info is still required. Remove virtnet_free altogether, and move the freeing of the per-cpu statistics from virtnet_free to virtnet_remove. Tested patch below. Signed-off-by: Krishna Kumar Acked-by: Michael S. Tsirkin Signed-off-by: David S. Miller --- Reading git-diff-tree failed