From: David Vrabel Date: Wed, 27 May 2015 14:46:10 +0000 (+0100) Subject: xen-netfront: properly destroy queues when removing device X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~48^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad0681185770716523c81b156c44b9804d7b8ed2;p=pandora-kernel.git xen-netfront: properly destroy queues when removing device xennet_remove() freed the queues before freeing the netdevice which results in a use-after-free when free_netdev() tries to delete the napi instances that have already been freed. Fix this by fully destroy the queues (which includes deleting the napi instances) before freeing the netdevice. Signed-off-by: David Vrabel Reviewed-by: Boris Ostrovsky Signed-off-by: David S. Miller --- Reading git-diff-tree failed