summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-elo.c
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2016-12-27 16:57:59 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-12 10:39:06 (GMT)
commit5f390df2baf73050b7af522ded2b2e070d21caa2 (patch)
treee32b1af87f7605e8661d3bdd83b7a46aed6f92de /drivers/hid/hid-elo.c
parent0c8033357b1d8fc4bba43cf1f87d2f61f3dd3fd2 (diff)
downloadlinux-5f390df2baf73050b7af522ded2b2e070d21caa2.tar.xz
HID: sensor-hub: Move the memset to sensor_hub_get_feature()
commit 143fca77cce906d35f7a60ccef648e888df589f2 upstream. While applying patch d443a0aa3a29: "HID: hid-sensor-hub: clear memory to avoid random data", there was some issues in applying correct version of the patch. This resulted in the breakage of sensor functions as all request like power-up will be reset by the memset() in the function sensor_hub_set_feature(). The reset of caller buffer should be in the function sensor_hub_get_feature(), not in the sensor_hub_set_feature(). Fixes: d443a0aa3a29 ("HID: hid-sensor-hub: clear memory to avoid random data") Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hid/hid-elo.c')
0 files changed, 0 insertions, 0 deletions