diff options
author | Jiri Kosina <jkosina@suse.cz> | 2023-01-06 15:49:55 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2023-01-06 15:49:55 +0100 |
commit | f1f73651a0849c26b735e7cc1543fa650162b51c (patch) | |
tree | 50dc9ae0c2605ca1d2c16038359cf4405db60fbe /include | |
parent | c8aca355bdd56e5dad55897cc419ea5d3e4c0e58 (diff) | |
download | lwn-f1f73651a0849c26b735e7cc1543fa650162b51c.tar.gz lwn-f1f73651a0849c26b735e7cc1543fa650162b51c.zip |
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: 98c062e824519 ("HID: hid-sensor-custom: Allow more custom iio sensors")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions