summaryrefslogtreecommitdiff
path: root/kernel/debug/debug_core.c
diff options
context:
space:
mode:
authorDaniel Schaefer <dhs@frame.work>2026-10-27 18:58:39 +0800
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-11-02 00:40:32 +0000
commitc83cc7d7ed204245ec50d974aefcfcc66e910cd5 (patch)
treeb00312cfbe3542e67a232beb50b78b72cf98b4a8 /kernel/debug/debug_core.c
parent4c56180167ea4d419a0578545bf62110494b563d (diff)
iio: light: hid-sensor-als: Don't read past the end of short fields
Reports are not guaranteed to be 4 bytes. On color ALS sensors there are fields that can be shorter than 4 bytes: 16-bit illuminance, color temperature and chromaticity x/y. I don't have such a sensor right now, but I have emulated one in firmware. With this patch, no garbage data is read from the next report: before: 05dc02bc 05dc02bc 190005dc 0ce41900 00000ce4 after: 000002bc 000002bc 000005dc 00001900 00000ce4 Same fix as commit ad02ca57e44e ("iio: hid-sensor-prox: Add support for 16-bit report size"). Fixes: ed5514c925a0 ("iio: hid-sensors: Added ALS") Signed-off-by: Daniel Schaefer <dhs@frame.work> Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'kernel/debug/debug_core.c')
0 files changed, 0 insertions, 0 deletions