drm/sched: Cancel and flush all outstanding jobs before finish.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Mon, 18 Jan 2021 21:01:13 +0000 (16:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:38:27 +0000 (11:38 +0100)
commita7cf5e49229b05b036e6c4c05a10091aa44999ae
treeca462cb5dfb3f58225cdd3eb418ee9cb0b96ef4f
parentbdbee7d7fd95ab064ad3d4988f4361c3f0cbafd7
drm/sched: Cancel and flush all outstanding jobs before finish.

commit e582951baabba3e278c97169d0acc1e09b24a72e upstream.

To avoid any possible use after free.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/414814/
CC: stable@vger.kernel.org
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/scheduler/sched_main.c