diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-17 15:56:50 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-09-23 12:21:29 +0200 |
| commit | 98401cf912fe8a081ef8e500c421b6d957b55a99 (patch) | |
| tree | 5aa43243cbc5bba0d13decd5a3849ed7043d46e1 /tools/lib/python/kdoc/python_version.py | |
| parent | 499485a67fbacf4d9afbdb43522388c64f853428 (diff) | |
| download | linux-next-98401cf912fe8a081ef8e500c421b6d957b55a99.tar.gz linux-next-98401cf912fe8a081ef8e500c421b6d957b55a99.zip | |
serial: ma35d1: Fix clock reference leak in ma35d1serial_probe()
of_clk_get() returns a clock with a reference that has to be released
with clk_put(). ma35d1serial_probe() never does that, so the reference
is leaked on the probe error paths and also when the port is removed.
Release it on the error paths and in ma35d1serial_remove().
Fixes: 930cbf92db01 ("tty: serial: Add Nuvoton ma35d1 serial driver support")
Cc: stable@kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20260917155650.2161274-1-vulab@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
