diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-07-11 23:49:16 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-07-11 23:56:03 -0700 |
commit | 071cfc43c875ee2e6ac2ae6929c2c153e1d13fe7 (patch) | |
tree | c9d7f9e6dfd41876f5bf35cf00a627d5f4024411 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | 1976d7d200c5a32e72293a2ada36b7b7c9d6dd6e (diff) |
Input: sun4i-lradc-keys - add of_node_put() before return
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 in three places.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions