summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tiny/simpledrm.c
diff options
context:
space:
mode:
authorHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>2022-09-08 03:56:23 -0700
committerMelissa Wen <melissa.srw@gmail.com>2022-09-10 21:18:56 -0100
commitaaa65520280e96dc47fa5065b74bddff30279abe (patch)
tree6e6249617f012b5b8cbb7ff374745362b0ebc018 /drivers/gpu/drm/tiny/simpledrm.c
parentfa47573b04a35078953be5f81a78f22c96358817 (diff)
downloadlinux-aaa65520280e96dc47fa5065b74bddff30279abe.tar.gz
linux-aaa65520280e96dc47fa5065b74bddff30279abe.tar.bz2
linux-aaa65520280e96dc47fa5065b74bddff30279abe.zip
drm/vkms: fix variable dereferenced before check warning
Smatch warns: drivers/gpu/drm/vkms/vkms_plane.c:110 vkms_plane_atomic_update() warn: variable dereferenced before check 'fb' (see line 108) Fix the warning by moving the dereference after the NULL check. Fixes: 8ba1648567e2 ("drm: vkms: Refactor the plane composer to accept new formats") Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> Reviewed-by: Melissa Wen <mwen@igalia.com> Signed-off-by: Melissa Wen <melissa.srw@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220908105623.72777-1-harshit.m.mogalapalli@oracle.com
Diffstat (limited to 'drivers/gpu/drm/tiny/simpledrm.c')
0 files changed, 0 insertions, 0 deletions