]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
HID: intel-ish-hid: Fix potential race condition
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 28 Nov 2016 19:23:35 +0000 (11:23 -0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 29 Nov 2016 14:17:34 +0000 (15:17 +0100)
commit6d290391be9233349345d49f4539a87f8cb31c30
treebe039f8e7c529d33356bcdd02e7a8aeeb949cb93
parente5b56aa7906d6995007ffe11ecc181dd876dabd3
HID: intel-ish-hid: Fix potential race condition

Although unlikely but it is possible that when a connect or disconnect
request is issued to the firmware, before the response comes, user
terminates the client session. In this case when the response is arrived
there is no matching client instance in the list of currently active
clients. In this case, don't issue call to wake up a waiting client.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/intel-ish-hid/ishtp/hbm.c