* RE: [PATCH] wifi: rtl818x: initialize eeprom_93cx6 struct to zero
[not found] <20260723110640.8588-1-stf_xl@wp.pl>
@ 2026-07-24 5:34 ` Ping-Ke Shih
0 siblings, 0 replies; only message in thread
From: Ping-Ke Shih @ 2026-07-24 5:34 UTC (permalink / raw)
To: stf_xl@wp.pl, linux-wireless@vger.kernel.org
stf_xl@wp.pl <stf_xl@wp.pl> wrote:
> From: Stanislaw Gruszka <stf_xl@wp.pl>
>
> 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>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-24 5:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260723110640.8588-1-stf_xl@wp.pl>
2026-07-24 5:34 ` [PATCH] wifi: rtl818x: initialize eeprom_93cx6 struct to zero Ping-Ke Shih
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox