Skip to content
Commit 7da54927 authored by Colin Ian King's avatar Colin Ian King Committed by Patrik Jakobsson
Browse files

drm/gma500: fix null dereference of pointer fb before null check



Pointer fb is being dereferenced when assigning dev before it
is null checked.  Fix this by only dereferencing dev after the
null check.

Fixes: 6b7ce2c4 ("drm/gma500: Remove struct psb_fbdev")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191216162136.270114-1-colin.king@canonical.com
parent 24f03be4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment