linux/drivers/gpu/drm/pl111
Wen Yang bc29d3a69d drm/pl111: fix possible object reference leak
The call to of_find_matching_node_and_match returns a node pointer with
refcount incremented thus it must be explicitly decremented after the
last usage.

Detected by coccinelle with the following warnings:
drivers/gpu/drm/pl111/pl111_versatile.c:333:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 317, but without a corresponding object release within this function.
drivers/gpu/drm/pl111/pl111_versatile.c:340:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 317, but without a corresponding object release within this function.
drivers/gpu/drm/pl111/pl111_versatile.c:346:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 317, but without a corresponding object release within this function.
drivers/gpu/drm/pl111/pl111_versatile.c:354:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 317, but without a corresponding object release within this function.
drivers/gpu/drm/pl111/pl111_versatile.c:395:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 317, but without a corresponding object release within this function.
drivers/gpu/drm/pl111/pl111_versatile.c:402:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 317, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Cc: Eric Anholt <eric@anholt.net> (supporter:DRM DRIVER FOR ARM PL111 CLCD)
Cc: David Airlie <airlied@linux.ie> (maintainer:DRM DRIVERS)
Cc: Daniel Vetter <daniel@ffwll.ch> (maintainer:DRM DRIVERS)
Cc: dri-devel@lists.freedesktop.org (open list:DRM DRIVERS)
Cc: linux-kernel@vger.kernel.org (open list)
Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/1554307455-40361-6-git-send-email-wen.yang99@zte.com.cn
2019-04-04 12:56:45 -07:00
..
Kconfig drm/pl111: Remove reverse dependency on DRM_DUMB_VGA_DAC 2018-02-26 11:04:51 +05:30
Makefile drm/pl111: Support Nomadik LCDC variant 2018-07-01 21:36:47 +02:00
pl111_debugfs.c drm/pl111: Add all registers to debugfs 2017-09-10 23:57:57 +02:00
pl111_display.c drm/pl111: Use 64-bit arithmetic instead of 32-bit 2018-07-17 11:25:18 -07:00
pl111_drm.h drm/pl111: Support Nomadik LCDC variant 2018-07-01 21:36:47 +02:00
pl111_drv.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
pl111_nomadik.c drm/pl111: Support Nomadik LCDC variant 2018-07-01 21:36:47 +02:00
pl111_nomadik.h drm/pl111: Support Nomadik LCDC variant 2018-07-01 21:36:47 +02:00
pl111_versatile.c drm/pl111: fix possible object reference leak 2019-04-04 12:56:45 -07:00
pl111_versatile.h drm/pl111: Add handling of Versatile platforms 2017-09-10 23:58:42 +02:00
pl111_vexpress.c drm/pl111: add of_node_put() 2018-11-28 09:31:07 -08:00
pl111_vexpress.h drm/pl111: Fix module probe bug 2018-05-04 00:13:41 +02:00