linux-stable/drivers/gpu/drm/vkms
Harshit Mogalapalli aaa6552028 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: 8ba1648567 ("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
2022-09-10 21:18:56 -01:00
..
Makefile drm: vkms: Refactor the plane composer to accept new formats 2022-09-05 20:18:35 -01:00
vkms_composer.c drm: vkms: Supports to the case where primary plane doesn't match the CRTC 2022-09-05 20:18:42 -01:00
vkms_crtc.c drm/vkms: fix misuse of WARN_ON 2021-03-25 08:23:28 -03:00
vkms_drv.c drm/vkms: Create a debugfs file to get vkms config data 2021-07-08 21:44:13 +01:00
vkms_drv.h drm: vkms: Add fb information to vkms_writeback_job 2022-09-05 20:12:18 -01:00
vkms_formats.c drm: vkms: Add support to the RGB565 format 2022-09-05 20:25:08 -01:00
vkms_formats.h drm: vkms: Refactor the plane composer to accept new formats 2022-09-05 20:18:35 -01:00
vkms_output.c drm: Drop drm_edid.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
vkms_plane.c drm/vkms: fix variable dereferenced before check warning 2022-09-10 21:18:56 -01:00
vkms_writeback.c drm: vkms: Add support to the RGB565 format 2022-09-05 20:25:08 -01:00