]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen-netback: free queues after freeing the net device
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 15 Jan 2016 14:55:36 +0000 (14:55 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 10 May 2016 20:34:32 +0000 (22:34 +0200)
commitd8bab50ca72a3087faae4c44096d7ad28afb0ec5
tree1f827030f817d9795a67a1fa21f362e4c7867c33
parentcfe1c5c26dbecc2c0a51f6e95d6a65d1d5026be2
xen-netback: free queues after freeing the net device

If a queue still has a NAPI instance added to the net device, freeing
the queues early results in a use-after-free.

The shouldn't ever happen because we disconnect and tear down all queues
before freeing the net device, but doing this makes it obviously safe.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 9c6f3ffe8200327d1cf2aad2ff2b414adaacbe96)
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
drivers/net/xen-netback/interface.c