diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-05-06 19:29:02 +0800 |
|---|---|---|
| committer | Conor Dooley <conor.dooley@microchip.com> | 2026-05-14 21:03:34 +0100 |
| commit | 75ef233975589d9a8c88bc8822a7c725c71ff650 (patch) | |
| tree | 0b34ecbc7367b21e0679a3dd3da85673b617fef1 /Documentation/arm64/git@git.tavy.me:linux.git | |
| parent | 254f49634ee16a731174d2ae34bc50bd5f45e731 (diff) | |
soc: microchip: mpfs-sys-controller: fix resource leak on probe error
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: 63b5305ad84d ("soc: microchip: mpfs-sys-controller: add support for pic64gx")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Diffstat (limited to 'Documentation/arm64/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
