linux/drivers/hid/intel-ish-hid
Hong Liu 0d28f49412 HID: intel-ish-hid: avoid binding wrong ishtp_cl_device
When performing a warm reset in ishtp bus driver, the ishtp_cl_device
will not be removed, its fw_client still points to the already freed
ishtp_device.fw_clients array.

Later after driver finishing ishtp client enumeration, this dangling
pointer may cause driver to bind the wrong ishtp_cl_device to the new
client, causing wrong callback to be called for messages intended for
the new client.

This helps in development of firmware where frequent switching of
firmwares is required without Linux reboot.

Signed-off-by: Hong Liu <hong.liu@intel.com>
Tested-by: Hongyan Song <hongyan.song@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2019-02-15 22:47:21 +01:00
..
ipc HID: intel-ish-hid: add MSI interrupt support 2018-12-19 19:59:01 +01:00
ishtp HID: intel-ish-hid: avoid binding wrong ishtp_cl_device 2019-02-15 22:47:21 +01:00
ishtp-hid-client.c HID: intel-ish-hid: use helper function to search client id 2018-09-24 11:20:06 +02:00
ishtp-hid.c HID: intel-ish-hid: fixes incorrect error handling 2018-12-17 15:04:49 +01:00
ishtp-hid.h HID: intel-ish-hid: ISH HID client driver 2016-08-17 11:13:08 +02:00
Kconfig HID: intel_ish-hid: enable compile testing 2017-05-30 14:11:52 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00