Thread (1 message) 1 message, 1 author, 2017-01-02

Re: [PATCH] HID: sensor-hub: Move the memset to sensor_hub_get_feature()

From: Jiri Kosina <hidden>
Date: 2017-01-02 13:04:07
Also in: linux-iio

On Tue, 27 Dec 2016, Srinivas Pandruvada wrote:
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 <redacted> # 4.9+
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
Applied to for-4.10/upstream-fixes, and I'll be pushing that out to Linus 
shortly. Thanks for fixing my mistake.

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help