diff options
| author | Ethan Tidmore <ethantidmore06@gmail.com> | 2026-02-27 15:56:23 -0600 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-03-02 11:15:57 +0100 |
| commit | fe5560688f3ba98364c7de7b4f8dc240ffd1ff75 (patch) | |
| tree | 694abef78c717c268b354ea48d63eccfafc99abe /tools/perf/scripts/python | |
| parent | a92b75100826b1ea27e6b8a678e53970ad4736d7 (diff) | |
pinctrl: pinctrl-pic32: Fix resource leak
Fix three possible resource leaks by using the devres version of
clk_prepare_enable(). Also, update error message accordingly.
Detected by Smatch:
drivers/pinctrl/pinctrl-pic32.c:2211 pic32_pinctrl_probe() warn:
'pctl->clk' from clk_prepare_enable() not released on lines: 2208.
drivers/pinctrl/pinctrl-pic32.c:2274 pic32_gpio_probe() warn:
'bank->clk' from clk_prepare_enable() not released on lines: 2264,2272.
Fixes: 2ba384e6c3810 ("pinctrl: pinctrl-pic32: Add PIC32 pin control driver")
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
