diff options
author | Xiaolei Wang <[email protected]> | 2023-05-05 07:37:36 +0800 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2023-06-16 14:59:03 +0200 |
commit | 9063777ca1e2e895c5fdd493ee0c3f18fa710ed4 (patch) | |
tree | 2da47b740c36978ed4e729f6eb5390f786ebe184 /tools/perf/scripts/python | |
parent | 4e739807ca96e56d0a7f6256f13c4ff416850ef9 (diff) |
pinctrl: freescale: Fix a memory out of bounds when num_configs is 1
The config passed in by pad wakeup is 1, when num_configs is 1,
Configuration [1] should not be fetched, which will be detected
by KASAN as a memory out of bounds condition. Modify to get
configs[1] when num_configs is 2.
Fixes: f60c9eac54af ("gpio: mxc: enable pad wakeup on i.MX8x platforms")
Signed-off-by: Xiaolei Wang <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions