]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Fix fb leaks and WARN spew in get/set_prop ioctls
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 22 Apr 2016 20:10:28 +0000 (22:10 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 26 Apr 2016 23:53:54 +0000 (09:53 +1000)
commit4f31280a4a495de305c2e60129ab1f414cbea78e
treecb50f076596b1e6d309af94ed89ad08535cb50e4
parent29d33fc0829b5619ff5ec673f5072360db342f98
drm: Fix fb leaks and WARN spew in get/set_prop ioctls

Dave Airlie had at least the refcount leak fixed in a later patch (but
that patch does other things which need a bit more work). But we still
have the trouble that silly userspace could hit the WARN_ON in
drm_mode_object_find.

Fix this all up to make sure we don't leak objects, and don't spew
into demsg.

Fixes: cfe9e42cad85 ("drm/mode: move framebuffer reference into object.")
Testcase: igt/kms_addfb_basic/invalid-*-prop*
Cc: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c