summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_drv.c
diff options
context:
space:
mode:
authorJoe Moriarty2018-02-20 20:11:56 +0100
committerDaniel Vetter2018-03-06 08:14:16 +0100
commit4ffb8deeed58b75dd1a23580845233b6ce0dca6c (patch)
tree71cd0f060ae9f5643426fe5b17da5f360df53583 /drivers/gpu/drm/drm_drv.c
parentdrm: Don't pass clip to drm_atomic_helper_check_plane_state() (diff)
downloadkernel-qcow2-linux-4ffb8deeed58b75dd1a23580845233b6ce0dca6c.tar.gz
kernel-qcow2-linux-4ffb8deeed58b75dd1a23580845233b6ce0dca6c.tar.xz
kernel-qcow2-linux-4ffb8deeed58b75dd1a23580845233b6ce0dca6c.zip
drm: NULL pointer dereference [null-pointer-deref] (CWE 476) problem
The Parfait (version 2.1.0) static code analysis tool found the following NULL pointer derefernce problem. - drivers/gpu/drm/drm_vblank.c Null pointer checks were added to return values from calls to drm_crtc_from_index(). There is a possibility, however minute, that crtc->index may not be found when trying to find the struct crtc from it's assigned index given in drm_crtc_init_with_planes(). 3 return checks for NULL where added with a call to WARN_ON(!crtc). Signed-off-by: Joe Moriarty <joe.moriarty@oracle.com> Reviewed-by: Steven Sistare <steven.sistare@oracle.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20180220191157.100960-2-joe.moriarty@oracle.com
Diffstat (limited to 'drivers/gpu/drm/drm_drv.c')
0 files changed, 0 insertions, 0 deletions