]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Fix cleanup of SKB's on driver close
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Fri, 26 May 2017 14:30:31 +0000 (10:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 May 2017 19:32:45 +0000 (15:32 -0400)
commit480dee4f4a2058d544bfd1e722c48f3efd244e38
treed4944cf1fffd65419a4c7e2d15d36d27e84c3ebd
parent02d33813a5995d388d240f23707f3b14ef20c87b
ibmvnic: Fix cleanup of SKB's on driver close

A race condition occurs when closing the driver. Free'ing of skb's
can race between the close routine and ibmvnic_tx_interrupt. To fix
this we move the claenup of tx pools during close to after the
sub-CRQ interrupts are disabled.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c