]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Do not process device remove during device reset
authorJuliet Kim <julietk@linux.vnet.ibm.com>
Tue, 10 Mar 2020 14:23:58 +0000 (09:23 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 22:50:42 +0000 (15:50 -0700)
commit142915d0f5f9bfdcd16e1d4d715c5db7d204ec67
tree61bd40679eb2e07fe586f81b0065688b35b01737
parent1c722030156a871222241e437542fbf5e45724f3
ibmvnic: Do not process device remove during device reset

The ibmvnic driver does not check the device state when the device
is removed. If the device is removed while a device reset is being
processed, the remove may free structures needed by the reset,
causing an oops.

Fix this by checking the device state before processing device remove.

Signed-off-by: Juliet Kim <julietk@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h