diff options
| author | Srinivas Pandruvada <[email protected]> | 2016-12-27 16:57:59 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2017-01-02 13:01:30 +0000 |
| commit | 143fca77cce906d35f7a60ccef648e888df589f2 (patch) | |
| tree | b08f1ce713d5a014824ac8f9a3762468ad987ce5 /net/unix/af_unix.c | |
| parent | HID: usbhid: Add quirk for Mayflash/Dragonrise DolphinBar. (diff) | |
| download | kernel-143fca77cce906d35f7a60ccef648e888df589f2.tar.gz kernel-143fca77cce906d35f7a60ccef648e888df589f2.zip | |
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 <[email protected]> # 4.9+
Signed-off-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
