Commit d02d50cb authored by Colin Ian King's avatar Colin Ian King Committed by Rob Clark
Browse files

drm/msm: Fix dereference of pointer minor before null check



Currently the pointer minor is being dereferenced before it is null
checked, leading to a potential null pointer dereference issue. Fix this
by dereferencing the pointer only after it has been null checked. Also
Replace minor->dev with dev.

Fixes: 4f89cf40 ("drm/msm: bail out late_init_minor() if it is not a GPU device")
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/666259/


Signed-off-by: default avatarRob Clark <robin.clark@oss.qualcomm.com>
parent 08c5b422
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment