2022-04-25 12:23:05

by Juan A.Suárez

[permalink] [raw]
Subject: Re: [PATCH] drm/v3d: Fix null pointer dereference of pointer perfmon

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 <[email protected]>


J.A.


2022-04-27 09:11:38

by Melissa Wen

[permalink] [raw]
Subject: Re: [PATCH] drm/v3d: Fix null pointer dereference of pointer perfmon

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 <[email protected]>

Applied to drm-misc-next.

Thanks,

Melissa
>
>
> J.A.
>


Attachments:
(No filename) (472.00 B)
signature.asc (849.00 B)
Download all attachments