]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jan 2016 20:13:19 +0000 (15:13 -0500)
commit45618e92b0ad7d06439e2b833067164a1bf34d46
tree8240a079a4eb513a9d71565a3051526d71329dda
parentf7725719e6aefc49250a1f75417c89ec617dd490
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>
drivers/net/xen-netback/interface.c