Short summary of fixes pull: * amdgpu: Fix test for allocation failures Signed-off-by: Dave Airlie <airlied@redhat.com>
Unified · Split
| @@ -71,7 +71,7 @@ static int amdgpu_preempt_mgr_new(struct ttm_resource_manager *man, · 70 unmodified lines | ||
| 71 | 71 | struct amdgpu_preempt_mgr *mgr = to_preempt_mgr(man); |
| 72 | 72 | |
| 73 | 73 | *res = kzalloc(sizeof(**res), GFP_KERNEL); |
| 74 | − if (*res) | |
| 74 | + if (!*res) | |
| 75 | 75 | return -ENOMEM; |
| 76 | 76 | |
| 77 | 77 | ttm_resource_init(tbo, place, *res); |