mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
drm/amd/scheduler: don't oops on failure to load
In two places amdgpu tries to tear down something it hasn't initalised when failing. This is what happens when you enable experimental support on topaz which then fails in ring init. This patch allows it to fail cleanly. agd: Split out from from the original patch since the scheduler is a driver independent. Reviewed-by: Chunming Zhou <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Dave Airlie <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
This commit is contained in:
parent
fe295b2715
commit
32544d0215
1 changed files with 2 additions and 1 deletions
|
|
@ -468,5 +468,6 @@ int amd_sched_init(struct amd_gpu_scheduler *sched,
|
|||
*/
|
||||
void amd_sched_fini(struct amd_gpu_scheduler *sched)
|
||||
{
|
||||
kthread_stop(sched->thread);
|
||||
if (sched->thread)
|
||||
kthread_stop(sched->thread);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue