drm/panthor: Fix OPP refcnt leaks in devfreq initialisation
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Tue, 5 Nov 2024 20:54:56 +0000 (20:54 +0000)
committerSteven Price <steven.price@arm.com>
Wed, 6 Nov 2024 15:41:47 +0000 (15:41 +0000)
commit21c23e4b64e360d74d31b480f0572c2add0e8558
tree37de8171566607fd38da4aaa8c30c3d033e12584
parent043e8afebf6c19abde9da1ac3d5cbf8b7ac8393f
drm/panthor: Fix OPP refcnt leaks in devfreq initialisation

Rearrange lookup of recommended OPP for the Mali GPU device and its refcnt
decremental to make sure no OPP object leaks happen in the error path.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Fixes: fac9b22df4b1 ("drm/panthor: Add the devfreq logical block")
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241105205458.1318989-2-adrian.larumbe@collabora.com
drivers/gpu/drm/panthor/panthor_devfreq.c