aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
diff options
context:
space:
mode:
authorManinder Singh <[email protected]>2015-07-08 04:13:35 +0000
committerDoug Ledford <[email protected]>2015-07-14 17:20:14 +0000
commita39a98ff4cc8b514fe6fa551f6ed59cd60e07da2 (patch)
treea863a36fb8f1a4f0a769d5a72dc781468d3bc9ad /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
parentIB/mlx4: Fix use of flow-counters for process_mad (diff)
downloadkernel-a39a98ff4cc8b514fe6fa551f6ed59cd60e07da2.tar.gz
kernel-a39a98ff4cc8b514fe6fa551f6ed59cd60e07da2.zip
IB/mlx4: Optimize freeing of items on error unwind
On failure, we loop through all possible pointers and test them before calling kfree. But really, why even attempt to free items we didn't allocate when we can easily loop through exactly and only the devices for which the original memory allocation succeeded and free just those. Signed-off-by: Maninder Singh <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions