summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorNishka Dasgupta <nishkadg.linux@gmail.com>2019-07-29 09:53:56 +0300
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2019-07-29 22:12:54 +0300
commitaf7b65054952a9898534d966f2e548d7692b7016 (patch)
tree3e53f21709d35d0708590ccff92031408df3620c /tools/perf/scripts/python/exported-sql-viewer.py
parent156189a6d7a797d6fa0b13dd6b4f32b11d234a99 (diff)
downloadlinux-af7b65054952a9898534d966f2e548d7692b7016.tar.xz
leds: netxbig: Add of_node_put() in netxbig_leds_get_of_pdata()
The variable gpio_ext_np in the function netxbig_leds_get_of_pdata takes the value returned by of_parse_phandle; hence, it must be put in order to prevent a memory leak. Add an of_node_put for gpio_ext_np before a return statement, and move a pre-existing of_node_put statement to right after the last usage of this variable. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions