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

Juan A. Suárez jasuarez at igalia.com
Mon Apr 25 07:10:17 UTC 2022


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>


	J.A.



More information about the dri-devel mailing list