diff options
author | 2023-01-06 15:49:55 +0100 | |
---|---|---|
committer | 2023-01-06 15:49:55 +0100 | |
commit | f1f73651a0849c26b735e7cc1543fa650162b51c (patch) | |
tree | 50dc9ae0c2605ca1d2c16038359cf4405db60fbe /lib/parser.c | |
parent | IIO: hid-sensor-prox: Use generic usage (diff) | |
download | linux-rng-f1f73651a0849c26b735e7cc1543fa650162b51c.tar.xz linux-rng-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 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions