aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i3c/master
diff options
context:
space:
mode:
authorNishka Dasgupta <nishkadg.linux@gmail.com>2019-07-23 16:07:25 +0530
committerBoris Brezillon <boris.brezillon@collabora.com>2019-08-11 10:45:51 +0200
commit91227632fc7a047965dcc41da89a40dc982caae8 (patch)
tree20baaf379dd9199a2a0fa94e136471f489fd26b6 /drivers/i3c/master
parenti3c: move i3c_device_match_id to device.c and export it (diff)
downloadlinux-dev-91227632fc7a047965dcc41da89a40dc982caae8.tar.xz
linux-dev-91227632fc7a047965dcc41da89a40dc982caae8.zip
i3c: master: Add of_node_put() before return
Each iteration of for_each_available_childe_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. Add an of_node_put before the return. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Diffstat (limited to 'drivers/i3c/master')
0 files changed, 0 insertions, 0 deletions