Re: [PATCH] drm/msm: Fix null pointer dereference on pointer edp

2021-10-01 Thread Dmitry Baryshkov
On 29/09/2021 15:18, Colin King wrote: From: Colin Ian King The initialization of pointer dev dereferences pointer edp before edp is null checked, so there is a potential null pointer deference issue. Fix this by only dereferencing edp after edp has been null checked. Addresses-Coverity: ("Der

[PATCH] drm/msm: Fix null pointer dereference on pointer edp

2021-09-29 Thread Colin King
From: Colin Ian King The initialization of pointer dev dereferences pointer edp before edp is null checked, so there is a potential null pointer deference issue. Fix this by only dereferencing edp after edp has been null checked. Addresses-Coverity: ("Dereference before null check") Fixes: ab5b0

[PATCH] drm/msm: Fix NULL pointer dereference

2019-03-03 Thread Luca Weiss
[3.707412] Unable to handle kernel NULL pointer dereference at virtual address 009c [3.714511] pgd = (ptrval) [3.722742] [009c] *pgd= [3.725238] Internal error: Oops: 5 [#1] PREEMPT SMP ARM [3.728968] Modules linked in: [3.734265] CPU: 3 PID: 112 Comm: kwork