diff options
| author | Stanislaw Gruszka <stf_xl@wp.pl> | 2026-07-23 13:06:40 +0200 |
|---|---|---|
| committer | Ping-Ke Shih <pkshih@realtek.com> | 2026-07-30 10:19:06 +0800 |
| commit | 799b5f45cb8194ebd06c9c89e0afdad5bedd2cc5 (patch) | |
| tree | 8a4d089d98bfdb50613214e75f4ad5697203e4c4 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | b0034a2e415603daa1cf00363b407cc145bbcd31 (diff) | |
wifi: rtl818x: initialize eeprom_93cx6 struct to zero
Commit 7738a7ab9d12 ("misc: eeprom: eeprom_93cx6: Add quirk for extra
read clock cycle") added extra 'quirk' field to struct eeprom_93cx6.
Many existing users of eeprom_93cx6, including rtl818x drivers, allocate
the structure on the stack without initializing all fields. As a result,
the added quirk field has an undefined value and can randomly cause
reading wrong data from the EEPROM.
Fix by initializing the structures with {}.
Fixes: 7738a7ab9d12 ("misc: eeprom: eeprom_93cx6: Add quirk for extra read clock cycle")
Cc: stable@kernel.org # v6.13+
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260723110640.8588-1-stf_xl@wp.pl
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
