diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2025-07-30 15:29:05 +0100 |
---|---|---|
committer | Rob Clark <robin.clark@oss.qualcomm.com> | 2025-08-07 09:22:27 -0700 |
commit | d02d50cb062737f2b0c689fa24ef8b86f14756e5 (patch) | |
tree | edaf99a9e027d48a68df16b19c4d417466ab03e2 /lib/timerqueue.c | |
parent | 08c5b422807435cdb79bee60da84262102e5f26a (diff) |
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: 4f89cf40d01e ("drm/msm: bail out late_init_minor() if it is not a GPU device")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/666259/
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions