Skip to content

Commit 4bac159

Browse files
committed
Merge tag 'drm-misc-next-fixes-2021-06-24' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
Short summary of fixes pull: * amdgpu: Fix test for allocation failures Signed-off-by: Dave Airlie <[email protected]> From: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/YNQxVybBGdjLMUQJ@linux-uq9g
2 parents b322a50 + eed75ce commit 4bac159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static int amdgpu_preempt_mgr_new(struct ttm_resource_manager *man,
7171
struct amdgpu_preempt_mgr *mgr = to_preempt_mgr(man);
7272

7373
*res = kzalloc(sizeof(**res), GFP_KERNEL);
74-
if (*res)
74+
if (!*res)
7575
return -ENOMEM;
7676

7777
ttm_resource_init(tbo, place, *res);

0 commit comments

Comments
 (0)