diff options
| author | Karl Mehltretter <kmehltretter@gmail.com> | 2026-08-08 21:04:17 +0200 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-08-14 15:15:04 +0200 |
| commit | 3efb7f6491526f5012f9ec94769e9ed832feeef8 (patch) | |
| tree | ef62086b994a906618f2087f6c6671e6703e41e8 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 05dffa55fd6dbed4bf2421fae5accc2b857e668d (diff) | |
HID: haptic: don't write an uninitialized value to unhandled usages
fill_effect_buf() initializes value only for the four haptic usages
handled by its switch, but writes it to field->value[] for every usage.
An unhandled usage can therefore receive either an uninitialized value
or one left over from the previous usage. hid_output_report() then
serializes that value into the effect's report buffer.
Skip unhandled usages instead. This also matches switch_mode(), which
only updates fields it recognizes.
Found with Clang's -Wconditional-uninitialized.
Fixes: 344ff3584957 ("HID: haptic: initialize haptic device")
Assisted-by: Claude:claude-fable-5
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
