diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-07-06 16:19:11 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-09-03 21:33:43 +0300 |
commit | 0a321b97368aa0567f238207eeb19cc8cbb6a7e2 (patch) | |
tree | a51843bf9edb029a1115daf31d82f3abf1649280 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7077ad2ee316551b4ba9602838d09b67683e20b6 (diff) | |
download | linux-0a321b97368aa0567f238207eeb19cc8cbb6a7e2.tar.xz |
i2c: fsi: Add of_put_node() before break
Each iteration of for_each_available_childe_of_node puts the previous
node, but in the case of a break from the middle of the loop, there
is no put, thus causing a memory leak. Add an of_node_put before the
break.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Reviewed-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions