diff options
| author | Harshit Mogalapalli <[email protected]> | 2022-09-08 03:56:23 -0700 |
|---|---|---|
| committer | Melissa Wen <[email protected]> | 2022-09-10 21:18:56 -0100 |
| commit | aaa65520280e96dc47fa5065b74bddff30279abe (patch) | |
| tree | 6e6249617f012b5b8cbb7ff374745362b0ebc018 /tools/perf/scripts | |
| parent | fa47573b04a35078953be5f81a78f22c96358817 (diff) | |
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 <[email protected]>
Reviewed-by: Melissa Wen <[email protected]>
Signed-off-by: Melissa Wen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions