diff options
author | Hans de Goede <hdegoede@redhat.com> | 2018-04-14 18:06:45 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-04-25 11:52:42 +0300 |
commit | 749ab300d41bcdbb8edf776d20e9a9891e79eba4 (patch) | |
tree | 9225b3e02656b05e00dfdfabbd6252b4dfcffa72 /drivers/hid/intel-ish-hid/ishtp | |
parent | 37ba3c350e64adcbdd483e81bf194c05d9573515 (diff) | |
download | linux-749ab300d41bcdbb8edf776d20e9a9891e79eba4.tar.xz |
HID: intel_ish-hid: Stop using a static local buffer in get_report()
hid_ishtp_get_report() may be called by multiple callers at the same
time, causing trouble with the static local buffer used.
Also there is no reason to use a non stack buffer, the buffer is tiny
and ishtp_cl_send() copies its contents so the lifetime is not an
issue either.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/intel-ish-hid/ishtp')
0 files changed, 0 insertions, 0 deletions