Skip to content
Commit 52749d60 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Rob Clark
Browse files

drm/msm/dsi: Fix potential NULL pointer dereference in msm_dsi_modeset_init



_dev_ is being dereferenced before it is null checked, hence there
is a potential null pointer dereference.

Fix this by moving the pointer dereference after _dev_ has been
null checked.

Fixes: d4e7f38d70ef ("drm/msm/dsi: check msm_dsi and dsi pointers before use")
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 5abc7dd7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment