aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-09-05 16:28:59 +0300
committerSebastian Reichel <[email protected]>2024-09-05 16:30:37 +0200
commit48f703d6a3d7cf345fe9c6209ea3703fe9024628 (patch)
treeef2da31e3250b387d872579f8fa72ac316508bb8 /tools/perf/util/scripting-engines/trace-event-python.c
parent6625767049c2e0960ba9835392a6ef9143170be6 (diff)
power: supply: max1720x: fix a double free on error in probe()
In this code, if devm_add_action_or_reset() fails, it will call max1720x_unregister_ancillary() which in turn calls i2c_unregister_device(). Thus the call to i2c_unregister_device() on the following line is not required and is a double unregister. Delete it. Fixes: 47271a935619 ("power: supply: max1720x: add read support for nvmem") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions