]> git.hungrycats.org Git - linux/commit
drm/panthor: Fix access to uninitialized variable in tick_ctx_cleanup()
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 30 Sep 2024 16:37:42 +0000 (18:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:01:07 +0000 (12:01 +0200)
commitac2ca5e5148a0d4d78ac01c2d8348d0757c7367f
tree63ebe81d1298d456c9cf2c88ada468c27796a8af
parenta3a1c41da56f888536e19a465ff6e55b089e11ff
drm/panthor: Fix access to uninitialized variable in tick_ctx_cleanup()

commit 282864cc5d3f144af0cdea1868ee2dc2c5110f0d upstream.

The group variable can't be used to retrieve ptdev in our second loop,
because it points to the previously iterated list_head, not a valid
group. Get the ptdev object from the scheduler instead.

Cc: <stable@vger.kernel.org>
Fixes: d72f049087d4 ("drm/panthor: Allow driver compilation")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@inria.fr>
Closes: https://lore.kernel.org/r/202409302306.UDikqa03-lkp@intel.com/
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240930163742.87036-1-boris.brezillon@collabora.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/panthor/panthor_sched.c