linux/drivers/soc
Conor Dooley 8e145bc705
soc/microchip: fix invalid free in mpfs_sys_controller_delete
Fix an invalid kfree in mpfs_sys_controller_delete, by replacing the
devm_kzalloc with a regular kzalloc. Change the error handling in the
probe function to free the sys_controller struct if the probe fails.

> cocci warnings: (new ones prefixed by >>)
> >> drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
Link: https://lore.kernel.org/linux-mm/202203180259.lgIylRZV-lkp@intel.com/

Fixes: d0054a470c ("soc: add microchip polarfire soc system controller")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Conor Dooley <mail@conchuod.ie>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-03-18 22:30:43 +01:00
..
actions soc: actions: include header to fix missing prototype 2020-09-22 12:45:16 +05:30
amlogic soc: s4: Add support for power domains controller 2022-03-07 09:40:39 +01:00
apple soc: apple: apple-pmgr-pwrstate: Do not build as a module 2021-12-15 20:36:05 +09:00
aspeed soc: aspeed: Add UART routing support 2021-10-22 17:32:09 +02:00
atmel ARM: at91: add support in soc driver for new SAMA5D29 2022-03-04 12:49:22 +01:00
bcm soc: bcm: brcmstb: Add of_node_put() in pm-mips 2021-11-15 09:57:14 -08:00
canaan riscv: canaan: remove useless select of non-existing config SYSCON 2022-01-20 09:35:11 -08:00
dove
fsl bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
gemini
imx soc: imx: imx8m-blk-ctrl: add i.MX8MQ VPU blk-ctrl 2022-02-11 10:51:52 +08:00
ixp4xx soc: ixp4xx/qmgr: fix invalid __iomem access 2021-08-03 10:16:34 +02:00
lantiq soc: lantiq: convert to devm_platform_ioremap_resource 2020-01-10 11:44:52 -08:00
litex drivers/soc/litex: remove 8-bit subregister option 2021-06-11 04:35:40 +09:00
mediatek soc: mediatek: mmsys: add sw0_rst_offset in mmsys driver data 2022-03-04 10:15:47 +01:00
microchip soc/microchip: fix invalid free in mpfs_sys_controller_delete 2022-03-18 22:30:43 +01:00
qcom soc: qcom: rpmpd: Add MSM8226 support 2022-02-24 14:12:34 -06:00
renesas soc: renesas: Kconfig: Introduce ARCH_RZG2L config option 2022-02-24 13:53:25 +01:00
rockchip soc: rockchip: io-domain: Remove unneeded semicolon 2021-08-19 23:56:38 +02:00
samsung soc: samsung: Add USI driver 2021-12-18 11:55:56 +01:00
sifive RISC-V: sifive_l2_cache: Update L2 cache driver to support SiFive FU740 2021-01-07 17:28:27 -08:00
sunxi soc: sunxi_sram: Make use of the helper function devm_platform_ioremap_resource() 2021-09-13 09:04:05 +02:00
tegra soc/tegra: pmc: Add Tegra234 wake events 2022-02-25 14:08:46 +01:00
ti soc: ti: k3-socinfo: Add AM62x JTAG ID 2022-02-28 05:35:19 -06:00
ux500 soc: ux500: Use custom soc attribute group instead of device_create_file 2020-07-06 09:48:06 +01:00
versatile soc: integrator: Drop pointless static qualifier in integrator_soc_init() 2020-08-20 08:57:05 +02:00
xilinx Char/Misc and other driver changes for 5.17-rc1 2022-01-14 16:02:28 +01:00
Kconfig soc: add microchip polarfire soc system controller 2022-02-25 12:50:59 +01:00
Makefile soc: add microchip polarfire soc system controller 2022-02-25 12:50:59 +01:00