summaryrefslogtreecommitdiff
path: root/include/keys
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2016-12-27 08:57:59 -0800
committerJiri Kosina <jkosina@suse.cz>2017-01-02 14:01:30 +0100
commit143fca77cce906d35f7a60ccef648e888df589f2 (patch)
treeb08f1ce713d5a014824ac8f9a3762468ad987ce5 /include/keys
parent8aa2cc7e747881d1fd52db28261b201d4e3e5565 (diff)
HID: sensor-hub: Move the memset to sensor_hub_get_feature()
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") Cc: Stable <stable@vger.kernel.org> # 4.9+ Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/keys')
0 files changed, 0 insertions, 0 deletions