WSL2-Linux-Kernel/drivers/misc
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
..
altera-stapl altera-stapl: altera_get_note: prevent write beyond end of 'key' 2020-03-03 08:02:57 +01:00
c2port
cardreader Char/Misc driver patches for 5.8-rc1 2020-06-07 10:59:32 -07:00
cb710
cxl mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
echo treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
eeprom Linux 5.6-rc7 2020-03-26 12:09:58 +01:00
genwqe mm: introduce include/linux/pgtable.h 2020-06-09 09:39:13 -07:00
habanalabs habanalabs: increase h/w timer when checking idle 2020-06-24 12:35:23 +03:00
ibmasm
lis3lv02d
lkdtm lkdtm: bugs: Fix spelling mistake 2020-04-23 16:30:09 +02:00
mei mei: bus: don't clean driver pointer 2020-06-29 19:10:51 +02:00
mic virtio: features, fixes 2020-06-10 13:42:09 -07:00
ocxl ocxl: Fix misleading comment 2020-05-20 23:39:57 +10:00
sgi-gru mmap locking API: convert mmap_sem comments 2020-06-09 09:39:14 -07:00
sgi-xp sgi-xp: make some symbols static in xpc_main.c 2020-04-23 16:55:23 +02:00
ti-st
uacce uacce: Remove mm_exit() op 2020-05-29 14:52:53 +02:00
vmw_vmci vmci_host: get rid of pointless access_ok() 2020-05-29 11:06:38 -04:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile bus: vexpress-config: Merge vexpress-syscfg into vexpress-config 2020-05-13 12:42:46 -05:00
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
atmel-ssc.c misc: atmel-ssc: lock with mutex instead of spinlock 2020-06-29 19:10:51 +02:00
atmel_tclib.c
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
enclosure.c
fastrpc.c misc: fastrpc: fix potential fastrpc_invoke_ctx leak 2020-05-15 16:21:08 +02:00
hmc6352.c
hpilo.c
hpilo.h
ibmvmc.c
ibmvmc.h
ics932s401.c
isl29003.c
isl29020.c
kgdbts.c maccess: rename probe_kernel_{read,write} to copy_{from,to}_kernel_nofault 2020-06-17 10:57:41 -07:00
lattice-ecp3-config.c
pch_phub.c
pci_endpoint_test.c misc: pci_endpoint_test: Add Device ID for RZ/G2E PCIe controller 2020-05-19 16:46:12 +02:00
phantom.c
pti.c Char/Misc driver changes for 5.6-rc1 2020-01-29 10:35:54 -08:00
pvpanic.c
qcom-coincell.c
sram-exec.c
sram.c
sram.h
tifm_7xx1.c
tifm_core.c
tsl2550.c
vmw_balloon.c
xilinx_sdfec.c misc: xilinx-sdfec: convert get_user_pages() --> pin_user_pages() 2020-05-27 11:09:26 +02:00