diff options
| author | Md Shofiqul Islam <[email protected]> | 2026-07-05 13:08:41 +0300 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2026-07-27 11:29:56 -0300 |
| commit | d2d005a32b97173d41ac99bfd19d7c9b73184d3a (patch) | |
| tree | 6f0e490d9c429f02552131a14d32a7cb3b4e7159 /scripts/decodecode | |
| parent | 141b9cab273d88272fec454f8e244ae31b5dd99f (diff) | |
ge: common: vpd_reader: fix errloc array size in verify_bch()
errloc stores bit positions of errors returned by decode_bch().
The maximum number of correctable errors is ecc_bits, so errloc
must have ecc_bits entries. The array was allocated with data_length
entries instead, which is the number of EEPROM data bytes -- orders
of magnitude larger than needed and incorrect.
Fixes: b418dfe16e62 ("board: ge: make VPD code common")
Signed-off-by: Md Shofiqul Islam <[email protected]>
Diffstat (limited to 'scripts/decodecode')
0 files changed, 0 insertions, 0 deletions
