Skip to content
Commit f1f73651 authored by Jiri Kosina's avatar Jiri Kosina
Browse files

HID: hid-sensor-custom: Fix big on-stack allocation in hid_sensor_custom_get_known()



struct hid_sensor_custom_properties is currently 384 bytes big, which consumes
too much stack space for no good reason. Make it dynamically allocated.

Fixes: 98c062e8 ("HID: hid-sensor-custom: Allow more custom iio sensors")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent c8aca355
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment