diff options
| author | Nicholas Johnson <[email protected]> | 2020-03-10 13:22:52 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-03-19 07:41:03 +0100 |
| commit | 3c91ef69a3e94f78546b246225ed573fbf1735b4 (patch) | |
| tree | 3251acb10ce8c6a59de3426fa5810b002a730114 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 061a320b32d47438d64d64b412c0ea2c323a1470 (diff) | |
nvmem: check for NULL reg_read and reg_write before dereferencing
Return -EPERM if reg_read is NULL in bin_attr_nvmem_read() or if
reg_write is NULL in bin_attr_nvmem_write().
This prevents NULL dereferences such as the one described in
03cd45d2e219 ("thunderbolt: Prevent crash if non-active NVMem file is
read")
Signed-off-by: Nicholas Johnson <[email protected]>
Cc: stable <[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/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions