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 <stable@xxxxxxxxxxxxxxx> # 4.9+ > Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx> 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 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html