diff options
| author | Andrew Scull <[email protected]> | 2022-04-03 10:39:14 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-04-29 11:11:36 -0400 |
| commit | 7f58feae3fba07c349fe57e86ce8bd5cc2198f58 (patch) | |
| tree | 5fc8c90e9205fce29a46d7eef8e6cfe9129cddf9 /include/linux/unaligned | |
| parent | 49209da54f9580c80e96b5a33351d24d59599926 (diff) | |
test: Fix pointer overrun in dm_test_devm_regmap()
This tests calls regmap_read() which takes a uint pointer as an output
parameter. The test was passing a pointer to a u16 which resulted in an
overflow when the output was written. Fix this by following the
regmap_read() API and passing a uint pointer instead.
Signed-off-by: Andrew Scull <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Jean-Jacques Hiblot <[email protected]>
Cc: Pratyush Yadav <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'include/linux/unaligned')
0 files changed, 0 insertions, 0 deletions
