WSL2-Linux-Kernel/drivers/ptp
SongJingyi f33642224e ptp_qoriq: fix memory leak in probe()
Smatch complains that:
drivers/ptp/ptp_qoriq.c ptp_qoriq_probe()
warn: 'base' from ioremap() not released.

Fix this by revising the parameter from 'ptp_qoriq->base' to 'base'.
This is only a bug if ptp_qoriq_init() returns on the
first -ENODEV error path.
For other error paths ptp_qoriq->base and base are the same.
And this change makes the code more readable.

Fixes: 7f4399ba40 ("ptp_qoriq: fix NULL access if ptp dt node missing")
Signed-off-by: SongJingyi <u201912584@hust.edu.cn>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>
Link: https://lore.kernel.org/r/20230324031406.1895159-1-u201912584@hust.edu.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-03-24 19:17:22 -07:00
..
Kconfig ptp: ocp: Select CRC16 in the Kconfig. 2022-07-27 18:11:34 -07:00
Makefile
ptp_chardev.c
ptp_clock.c ptp: remove the .adjfreq interface function 2022-11-11 10:58:39 +00:00
ptp_clockmatrix.c ptp: ptp_clockmatrix: fix is_single_shot 2022-05-25 21:51:32 -07:00
ptp_clockmatrix.h ptp: ptp_clockmatrix: return -EBUSY if phase pull-in is in progress 2022-05-17 17:49:04 -07:00
ptp_dte.c ptp: convert remaining drivers to adjfine interface 2022-11-11 10:58:39 +00:00
ptp_idt82p33.c ptp: idt82p33: remove PEROUT_ENABLE_OUTPUT_MASK 2022-11-25 10:34:08 +00:00
ptp_idt82p33.h ptp: idt82p33: remove PEROUT_ENABLE_OUTPUT_MASK 2022-11-25 10:34:08 +00:00
ptp_ines.c
ptp_kvm_arm.c
ptp_kvm_common.c drivers: convert unsupported .adjfreq to .adjfine 2022-10-31 11:14:16 +00:00
ptp_kvm_x86.c
ptp_ocp.c net: devlink: let the core report the driver name instead of the drivers 2022-11-30 21:49:38 -08:00
ptp_pch.c ptp_phc: convert .adjfreq to .adjfine 2022-11-11 10:58:39 +00:00
ptp_private.h ptp: vclock: use mutex to fix "sleep on atomic" bug 2023-02-22 21:23:48 -08:00
ptp_qoriq.c ptp_qoriq: fix memory leak in probe() 2023-03-24 19:17:22 -07:00
ptp_qoriq_debugfs.c
ptp_sysfs.c
ptp_vclock.c ptp: vclock: use mutex to fix "sleep on atomic" bug 2023-02-22 21:23:48 -08:00
ptp_vmw.c Networking changes for 6.2. 2022-12-13 15:47:48 -08:00