mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
In mpfs_sys_controller_probe(), when device_get_match_data() returns
NULL, it returns -EINVAL directly without freeing the mbox channel
or the allocated sys_controller memory, causing a resource leak.
Fixes: 63b5305ad8 ("soc: microchip: mpfs-sys-controller: add support for pic64gx")
Signed-off-by: Felix Gu <[email protected]>
Signed-off-by: Conor Dooley <[email protected]>