[PATCH v2] drm/amdgpu/fence: Fix oops due to non-matching drm_sched init/fini
Guilherme G. Piccoli
gpiccoli at igalia.com
Thu Feb 2 13:52:03 UTC 2023
On 02/02/2023 08:58, Christian König wrote:
> [...]
>> + if (!ring->no_scheduler && ring->sched.ops)
>> drm_sched_fini(&ring->sched);
>
> I think we should drop the check for no_scheduler here and just call
> drm_sched_fini() when the scheduler instance was initialized before.
>
> Background is that I've found a couple of places where we potentially
> set no_scheduler to false after the scheduler was already initialized.
>
> This is then probably leading to a memory leak or worth.
>
> Regards,
> Christian.
Thanks Christian, nice finding! And thanks for the reviews Guchun / Luben =)
I just submitted a V3 [0], but didn't add the review tags from Guchun /
Luben, since the patch changed.
Cheers,
Guilherme
[0]
https://lore.kernel.org/dri-devel/20230202134856.1382169-1-gpiccoli@igalia.com/
More information about the amd-gfx
mailing list