aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorSongJingyi <[email protected]>2023-03-24 11:14:06 +0800
committerJakub Kicinski <[email protected]>2023-03-24 19:17:22 -0700
commitf33642224e38d7e0d59336e10e7b4e370b1c4506 (patch)
treed2e6169e4f7cd77dd6119b603745185dfaafa9a4 /scripts/generate_rust_analyzer.py
parent3bced313b9a5a237c347e0f079c8c2fe4b3935aa (diff)
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: 7f4399ba405b ("ptp_qoriq: fix NULL access if ptp dt node missing") Signed-off-by: SongJingyi <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Reviewed-by: Dongliang Mu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions