linux/drivers/misc/mei
Alexander Usyskin e852c2c251 mei: bus: don't clean driver pointer
It's not needed to set driver to NULL in mei_cl_device_remove()
which is bus_type remove() handler as this is done anyway
in __device_release_driver().

Actually this is causing an endless loop in driver_detach()
on ubuntu patched kernel, while removing (rmmod) the mei_hdcp module.
The reason list_empty(&drv->p->klist_devices.k_list) is always not-empty.
as the check is always true in  __device_release_driver()
	if (dev->driver != drv)
		return;

The non upstream patch is causing this behavior, titled:
'vfio -- release device lock before userspace requests'

Nevertheless the fix is correct also for the upstream.

Link: https://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20180912085046.3401-2-apw@canonical.com/
Cc: <stable@vger.kernel.org>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20200628225359.2185929-1-tomas.winkler@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-29 19:10:51 +02:00
..
hdcp mei: hdcp: bind only with i915 on the same PCH 2020-01-10 13:20:49 +01:00
Kconfig mei: hdcp: use own Kconfig file 2019-04-25 19:33:34 +02:00
Makefile mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
bus-fixup.c mei: bus: replace zero-length array with flexible-array member 2020-02-11 14:03:19 -08:00
bus.c mei: bus: don't clean driver pointer 2020-06-29 19:10:51 +02:00
client.c mei: release me_cl object reference 2020-05-15 16:32:19 +02:00
client.h mei: bus: add more client attributes to sysfs 2019-11-16 12:58:54 +01:00
debugfs.c Driver Core and debugfs changes for 5.3-rc1 2019-07-12 12:24:03 -07:00
dma-ring.c mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hbm.c mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hbm.h mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hw-me-regs.h mei: me: add tiger lake point device ids for H platforms. 2020-06-23 07:55:47 +02:00
hw-me.c mei: me: add tiger lake point device ids for H platforms. 2020-06-23 07:55:47 +02:00
hw-me.h mei: me: add tiger lake point device ids for H platforms. 2020-06-23 07:55:47 +02:00
hw-txe-regs.h mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hw-txe.c mei: abstract fw status register read. 2019-11-07 09:35:49 +01:00
hw-txe.h mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hw.h misc: Replace zero-length array with flexible-array member 2020-03-18 12:24:19 +01:00
init.c mei: abstract fw status register read. 2019-11-07 09:35:49 +01:00
interrupt.c mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
main.c compat_ioctl: remove most of fs/compat_ioctl.c 2019-12-01 13:46:15 -08:00
mei-trace.c mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
mei-trace.h mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
mei_dev.h misc: Replace zero-length array with flexible-array member 2020-03-18 12:24:19 +01:00
pci-me.c mei: me: add tiger lake point device ids for H platforms. 2020-06-23 07:55:47 +02:00
pci-txe.c PM: sleep: core: Rename DPM_FLAG_NEVER_SKIP 2020-04-24 21:33:09 +02:00