diff options
author | John Thomson <[email protected]> | 2024-09-02 15:25:08 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-09-03 12:20:38 +0200 |
commit | 8679e8b4a1ebdb40c4429e49368d29353e07b601 (patch) | |
tree | 0f2a909dfe910be115e372ff64c1744af5ca53ab /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | e8c276d4dc0e19ee48385f74426aebc855b49aaf (diff) |
nvmem: u-boot-env: error if NVMEM device is too small
Verify data size before trying to parse it to avoid reading out of
buffer. This could happen in case of problems at MTD level or invalid DT
bindings.
Signed-off-by: John Thomson <[email protected]>
Cc: stable <[email protected]>
Fixes: d5542923f200 ("nvmem: add driver handling U-Boot environment variables")
[rmilecki: simplify commit description & rebase]
Signed-off-by: Rafał Miłecki <[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/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions