[PATCH] drm/panthor: Fix access to uninitialized variable in tick_ctx_cleanup()

Boris Brezillon boris.brezillon at collabora.com
Mon Sep 30 16:31:12 UTC 2024


On Mon, 30 Sep 2024 18:16:04 +0200 (CEST)
Julia Lawall <julia.lawall at inria.fr> wrote:

> On Mon, 30 Sep 2024, Boris Brezillon wrote:
> 
> > The group variable can't be used to retrieve ptdev in our second loop,
> > because it might be uninitialized or point to a group that's already
> > gone. Get the ptdev object from the scheduler instead.  
> 
> Won't it always be pointing to some random place above the list_head at
> the start of the list in the last element of the array?

Oh, absolutely. I'll fix the commit message and send a v2 shortly.


More information about the dri-devel mailing list