summaryrefslogtreecommitdiff
path: root/lib/kobject.c
diff options
context:
space:
mode:
authorAlexander Usyskin <alexander.usyskin@intel.com>2023-02-07 14:55:19 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-08 15:24:46 +0300
commit784304ae5e5ff407d81975a406328d57d66de27b (patch)
treeceef466b7273fdbe6870162b9abd3ff30bfe9889 /lib/kobject.c
parent209cdbd07cfaa4b7385bad4eeb47e5ec1887d33d (diff)
downloadlinux-784304ae5e5ff407d81975a406328d57d66de27b.tar.xz
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>
Diffstat (limited to 'lib/kobject.c')
0 files changed, 0 insertions, 0 deletions