diff options
| author | Guangshuo Li <lgs201920130244@gmail.com> | 2026-10-07 20:17:43 +0800 |
|---|---|---|
| committer | Conor Dooley <conor.dooley@microchip.com> | 2026-10-13 15:43:15 +0100 |
| commit | 6f77194e1147d85c10b4964edee7091c701a25c2 (patch) | |
| tree | b5496e9a16debe0a462321259ae299b7730a314f /tools/lib/python | |
| parent | 96b35a1251dc9977967286623fd15fcef34feeb1 (diff) | |
| download | linux-next-6f77194e1147d85c10b4964edee7091c701a25c2.tar.gz linux-next-6f77194e1147d85c10b4964edee7091c701a25c2.zip | |
soc: mpfs: use kref cleanup on probe failure
After kref_init(), the device_get_match_data() failure path frees the
mailbox channel and sys_controller directly, bypassing the matching
kref_put() for the initial reference.
Use mpfs_sys_controller_put() on this path so that the initial
reference established by kref_init() is released through the existing
kref release callback.
Rename the error label to reflect that cleanup is now performed
through the kref helper.
This issue was found by manual code inspection.
Fixes: 75ef23397558 ("soc: microchip: mpfs-sys-controller: fix resource leak on probe error")
Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com>
Signed-off-by: Conor Dooley <mail@conchuod.ie>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
