]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix amdgpu_preempt_mgr_new()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Jun 2021 08:37:21 +0000 (11:37 +0300)
committerChristian König <christian.koenig@amd.com>
Mon, 21 Jun 2021 13:24:29 +0000 (15:24 +0200)
commiteed75ce7c8260e0d5612ced4a88180ab991e207c
tree291aac09befaa84c57c6b96d47e50d91e1b57463
parent24ff3dc18b99c4b912ab1746e803ddb3be5ced4c
drm/amdgpu: fix amdgpu_preempt_mgr_new()

There is a reversed if statement in amdgpu_preempt_mgr_new() so it
always returns -ENOMEM.

Fixes: 09b020bb05a5 ("Merge tag 'drm-misc-next-2021-06-09' of git://anongit.freedesktop.org/drm/drm-misc into drm-next")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/YMxbQXg/Wqm0ACxt@mwanda
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c