diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2017-10-12 18:04:44 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-12-14 15:54:25 +0100 |
commit | ef94711a04027066c4ae77d3477a5a4e0ba0784f (patch) | |
tree | e984bab3ef3b03bb26590a124c8d285506ea4ec0 /drivers/media/i2c/ir-kbd-i2c.c | |
parent | media: bt8xx: Fix err 'bt878_probe()' (diff) | |
download | linux-ef94711a04027066c4ae77d3477a5a4e0ba0784f.tar.xz linux-ef94711a04027066c4ae77d3477a5a4e0ba0784f.zip |
media: xilinx-video: fix bad of_node_put() on endpoint error
When iterating through all endpoints using of_graph_get_next_endpoint(),
the refcount of the returned endpoint node is incremented and the refcount
of the node which is passed as previous endpoint is decremented.
So the caller doesn't need to call of_node_put() for each iterated node
except for error exit paths. Otherwise we get "OF: ERROR: Bad
of_node_put() on ..." messages.
Cc: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c/ir-kbd-i2c.c')
0 files changed, 0 insertions, 0 deletions