diff options
| author | Steffen Bätz <[email protected]> | 2025-07-12 18:17:27 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-07-13 15:43:13 +0000 |
| commit | 2aa4ad626ee7f817a8f4715a47b318cfdc1714c9 (patch) | |
| tree | ad8800adc08c47e283e33bac4ef683bb85a94a65 /tools/perf/scripts/python | |
| parent | MAINTAINERS: add miscdevice Rust abstractions (diff) | |
| download | kernel-2aa4ad626ee7f817a8f4715a47b318cfdc1714c9.tar.gz kernel-2aa4ad626ee7f817a8f4715a47b318cfdc1714c9.zip | |
nvmem: imx-ocotp: fix MAC address byte length
The commit "13bcd440f2ff nvmem: core: verify cell's raw_len" caused an
extension of the "mac-address" cell from 6 to 8 bytes due to word_size
of 4 bytes. This led to a required byte swap of the full buffer length,
which caused truncation of the mac-address when read.
Previously, the mac-address was incorrectly truncated from
70:B3:D5:14:E9:0E to 00:00:70:B3:D5:14.
Fix the issue by swapping only the first 6 bytes to correctly pass the
mac-address to the upper layers.
Fixes: 13bcd440f2ff ("nvmem: core: verify cell's raw_len")
Cc: [email protected]
Signed-off-by: Steffen Bätz <[email protected]>
Tested-by: Alexander Stein <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
