Alexander Usyskin 784304ae5e mei: bus: disallow driver match while dismantling device
With immediate reply support to enum request and
FW reset, a device on MEI bus can be temporarily removed.
A driver for a device on MEI bus can try to bind to the device
right between bus attempt to remove driver and device
structures removal.
This leaves device driver with pointers to freed memory
of device structures.

Avoid bus device driver bind while dismantling device by
disallowing device match right before driver release.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20230207115520.846232-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-02-08 13:24:46 +01:00
..
2022-12-19 07:13:33 -06:00
2022-12-16 03:54:54 -08:00
2023-01-22 08:37:23 +01:00
2021-10-05 15:47:18 +02:00
2022-09-01 17:42:27 -04:00
2022-12-15 10:37:26 -08:00