diff options
| author | Myeonghun Pak <mhun512@gmail.com> | 2026-09-11 11:53:18 -0400 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-15 18:08:42 -0700 |
| commit | 87b80c2f6b05cad9f0ff9136709c62a0f59923e3 (patch) | |
| tree | fc27edd107270a704ac2a42e4f21aab6de431f44 /tools/lib/python/kdoc/python_version.py | |
| parent | 0570dced4304cda532e5862fe3f8677a8e703b2e (diff) | |
net: txgbe: free the fixed-rate clock on cleanup
The fixed-rate clock is registered with clk_register_fixed_rate(), but
its error and removal paths use clk_unregister(). That unregisters the
clock without freeing the fixed-rate provider allocation.
Use clk_unregister_fixed_rate() on lookup creation failure, later PHY
initialization failure and removal to release the provider allocation as
well. Keep the existing clock registration and lookup cleanup ordering.
This issue was identified during our ongoing static-analysis research while
reviewing kernel code.
Cc: stable+noautosel@kernel.org # untested fix to a driver init path
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260911155318.88857-1-mhun512@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
