summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorXiaolei Wang <xiaolei.wang@windriver.com>2023-05-05 02:37:36 +0300
committerLinus Walleij <linus.walleij@linaro.org>2023-06-16 15:59:03 +0300
commit9063777ca1e2e895c5fdd493ee0c3f18fa710ed4 (patch)
tree2da47b740c36978ed4e729f6eb5390f786ebe184 /mm
parent4e739807ca96e56d0a7f6256f13c4ff416850ef9 (diff)
downloadlinux-9063777ca1e2e895c5fdd493ee0c3f18fa710ed4.tar.xz
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 <xiaolei.wang@windriver.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Link: https://lore.kernel.org/r/20230504233736.3766296-1-xiaolei.wang@windriver.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions