summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_syncobj.c
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>2018-10-13 12:56:54 +0200
committerHeiko Stuebner <heiko@sntech.de>2018-10-16 14:57:06 +0200
commit4eda776c3cefcb1f01b2d85bd8753f67606282b5 (patch)
tree712485ccc7c8350582caf4bda7fdbb5aed4707f7 /drivers/gpu/drm/drm_syncobj.c
parentdrm: add flags to drm_syncobj_find_fence (diff)
downloadlinux-4eda776c3cefcb1f01b2d85bd8753f67606282b5.tar.xz
linux-4eda776c3cefcb1f01b2d85bd8753f67606282b5.zip
drm/rockchip: psr: do not dereference encoder before it is null checked.
'encoder' is dereferenced before it is null sanity checked, hence we potentially have a null pointer dereference bug. Instead, initialise drm_drv from encoder->dev->dev_private after we are sure 'encoder' is not null. Fixes: 5182c1a556d7f ("drm/rockchip: add an common abstracted PSR driver") Cc: stable@vger.kernel.org Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patchwork.freedesktop.org/patch/msgid/20181013105654.11827-1-enric.balletbo@collabora.com
Diffstat (limited to 'drivers/gpu/drm/drm_syncobj.c')
0 files changed, 0 insertions, 0 deletions