[PATCH net] ibmvnic: Do not process reset during or after device removal

David Miller davem at davemloft.net
Thu Aug 29 08:46:00 AEST 2019


From: Thomas Falcon <tlfalcon at linux.ibm.com>
Date: Tue, 27 Aug 2019 11:10:04 -0500

> Currently, the ibmvnic driver will not schedule device resets
> if the device is being removed, but does not check the device
> state before the reset is actually processed. This leads to a race
> where a reset is scheduled with a valid device state but is
> processed after the driver has been removed, resulting in an oops.
> 
> Fix this by checking the device state before processing a queued
> reset event.
> 
> Reported-by: Abdul Haleem <abdhalee at linux.vnet.ibm.com>
> Tested-by: Abdul Haleem <abdhalee at linux.vnet.ibm.com>
> Signed-off-by: Thomas Falcon <tlfalcon at linux.ibm.com>

Applied.


More information about the Linuxppc-dev mailing list