summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_simple_kms_helper.h
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2016-10-02 08:01:22 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-10-05 15:16:54 +0200
commit587680c1c52d73bc7d5dbba2dcfadacb7a3f6b0e (patch)
tree0706cf37def55b3a4a37b2b2e51f5f7899101a05 /include/drm/drm_simple_kms_helper.h
parentdrm/rockchip: analogix_dp: Refuse to enable PSR if panel doesn't support it (diff)
downloadlinux-587680c1c52d73bc7d5dbba2dcfadacb7a3f6b0e.tar.xz
linux-587680c1c52d73bc7d5dbba2dcfadacb7a3f6b0e.zip
drm: Release resources with a safer function
We should use 'ida_simple_remove()' instead of 'ida_remove()' when freeing resources allocated with 'ida_simple_get()'. This as been spotted with the following coccinelle script which tries to detect missing 'ida_simple_remove()' call in error handling paths. /////////////// @@ expression x; identifier l; @@ * x = ida_simple_get(...); ... if (...) { ... } ... if (...) { ... goto l; } ... * l: ... when != ida_simple_remove(...); Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1475388082-12656-1-git-send-email-christophe.jaillet@wanadoo.fr
Diffstat (limited to 'include/drm/drm_simple_kms_helper.h')
0 files changed, 0 insertions, 0 deletions