diff options
author | 2019-08-04 21:32:00 +0530 | |
---|---|---|
committer | 2019-10-01 20:22:04 +0200 | |
commit | 3d2557ab75d4c568c79eefa2e550e0d80348a6bd (patch) | |
tree | 158ef91e5eea10478e3855ea9a2033aa4aefd518 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 5.4-rc1 (diff) | |
download | wireguard-linux-3d2557ab75d4c568c79eefa2e550e0d80348a6bd.tar.xz wireguard-linux-3d2557ab75d4c568c79eefa2e550e0d80348a6bd.zip |
pinctrl: samsung: Add of_node_put() before return in error path
Each iteration of for_each_child_of_node puts the previous node, but in
the case of a return from the middle of the loop, there is no put, thus
causing a memory leak. Hence add an of_node_put before the return of
exynos_eint_wkup_init() error path.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Cc: <stable@vger.kernel.org>
Fixes: 14c255d35b25 ("pinctrl: exynos: Add irq_chip instance for Exynos7 wakeup interrupts")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions