diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-08-15 08:00:14 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-09-19 20:21:44 +0200 |
commit | d7f76f36a8b4dc8eff0c22819e4a5d55b0dee62a (patch) | |
tree | e2d5fba6e85021f13d3c9ff8aa44101227512344 /Kbuild | |
parent | nbd: fix possible page fault for nbd disk (diff) | |
download | linux-d7f76f36a8b4dc8eff0c22819e4a5d55b0dee62a.tar.xz linux-d7f76f36a8b4dc8eff0c22819e4a5d55b0dee62a.zip |
ata: libahci_platform: Add of_node_put() before loop exit
Each iteration of for_each_child_of_node puts the previous node, but
in the case of a goto from the middle of the loop, there is no put,
thus causing a memory leak. Add an of_node_put before three such goto
statements.
Issue found with Coccinelle.
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions