linux/drivers/pinctrl/freescale
Xiaolei Wang 9063777ca1 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: f60c9eac54 ("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>
2023-06-16 14:59:03 +02:00
..
Kconfig pinctrl: freescale: remove generic pin config core support 2023-03-07 14:15:37 +01:00
Makefile pinctrl: freescale: Add i.MXRT1170 pinctrl driver support 2022-05-19 15:07:33 +02:00
pinctrl-imx1-core.c pinctrl: imx: Add missing header(s) 2022-10-24 17:06:45 +03:00
pinctrl-imx1.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx1.h pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6dl.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx6q.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx6sl.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx6sll.c pinctrl: imx: Remove unneeded of_match_ptr() 2021-04-08 16:00:53 +02:00
pinctrl-imx6sx.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx6ul.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx7d.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx7ulp.c pinctrl: imx: Remove unneeded of_match_ptr() 2021-04-08 16:00:53 +02:00
pinctrl-imx8dxl.c pinctrl: imx8dxl: Constify imx_pinctrl_soc_info 2021-07-30 12:06:02 +02:00
pinctrl-imx8mm.c pinctrl: imx: Remove unneeded of_match_ptr() 2021-04-08 16:00:53 +02:00
pinctrl-imx8mn.c pinctrl: imx8mn: Constify imx_pinctrl_soc_info 2021-07-30 12:03:47 +02:00
pinctrl-imx8mp.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx8mq.c pinctrl: imx: Remove unneeded of_match_ptr() 2021-04-08 16:00:53 +02:00
pinctrl-imx8qm.c pinctrl: imx: Remove unneeded of_match_ptr() 2021-04-08 16:00:53 +02:00
pinctrl-imx8qxp.c pinctrl: imx8qxp: Constify imx_pinctrl_soc_info 2021-07-30 12:03:47 +02:00
pinctrl-imx8ulp.c pinctrl: imx8ulp: Initialize pin_reg 2021-07-23 22:52:47 +02:00
pinctrl-imx23.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx25.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx27.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx28.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx35.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx50.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx51.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx53.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx93.c Pin control bulk changes for v6.0: 2022-08-10 11:01:44 -07:00
pinctrl-imx.c pinctrl: freescale: remove generic pin config core support 2023-03-07 14:15:37 +01:00
pinctrl-imx.h pinctrl: freescale: remove generic pin config core support 2023-03-07 14:15:37 +01:00
pinctrl-imxrt1050.c pinctrl: freescale: Fix i.MXRT1050 pad names 2022-11-10 09:19:43 +01:00
pinctrl-imxrt1170.c pinctrl: freescale: Add i.MXRT1170 pinctrl driver support 2022-05-19 15:07:33 +02:00
pinctrl-mxs.c pinctrl: mxs: avoid defines prefixed with CONFIG 2022-12-29 02:05:16 +01:00
pinctrl-mxs.h pinctrl: mxs: avoid defines prefixed with CONFIG 2022-12-29 02:05:16 +01:00
pinctrl-scu.c pinctrl: freescale: Fix a memory out of bounds when num_configs is 1 2023-06-16 14:59:03 +02:00
pinctrl-vf610.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00