aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorConor Dooley <[email protected]>2022-03-18 17:21:08 +0000
committerArnd Bergmann <[email protected]>2022-03-18 22:30:43 +0100
commit8e145bc705e738ebe7ed6c53d93278981d9af356 (patch)
treec03c8150367450ede547ba1edf6728f050d872b2 /net/lapb/lapb_subr.c
parentc76edea0e52d5522835534de90c893ca50b04402 (diff)
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/[email protected]/ Fixes: d0054a470c33 ("soc: add microchip polarfire soc system controller") Reported-by: kernel test robot <[email protected]> Signed-off-by: Conor Dooley <[email protected]> Signed-off-by: Conor Dooley <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions