[PATCH] drm/v3d: Fix null pointer dereference of pointer perfmon

Melissa Wen mwen at igalia.com
Tue Apr 26 12:58:30 UTC 2022


On 04/25, Juan A. Suárez wrote:
> On Sun, 2022-04-24 at 19:35 +0100, Colin Ian King wrote:
> > In the unlikely event that pointer perfmon is null the WARN_ON return
> > path
> > occurs after the pointer has already been deferenced. Fix this by
> > only
> > dereferencing perfmon after it has been null checked.
> > 
> 
> Good catch!
> 
> Reviewed-by: Juan A. Suarez <jasuarez at igalia.com>

Applied to drm-misc-next.

Thanks,

Melissa
> 
> 
> 	J.A.
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220426/c94ec68b/attachment-0001.sig>


More information about the dri-devel mailing list