aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2018-03-26 15:10:18 +0000
committerJason Gunthorpe <[email protected]>2018-03-27 21:06:34 +0000
commit38759d6175d338fbf9282c8ea2b51f3b7ab9bc98 (patch)
treea10f907656d5df8f4fb922e1a53b6e0888b47a95 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentRDMA/ucma: Check that device exists prior to accessing it (diff)
downloadkernel-38759d6175d338fbf9282c8ea2b51f3b7ab9bc98.tar.gz
kernel-38759d6175d338fbf9282c8ea2b51f3b7ab9bc98.zip
RDMA/hns: ensure for-loop actually iterates and free's buffers
The current for-loop zeros variable i and only loops once, hence not all the buffers are free'd. Fix this by setting i correctly. Detected by CoverityScan, CID#1463415 ("Operands don't affect result") Fixes: a5073d6054f7 ("RDMA/hns: Add eq support of hip08") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Yixian Liu <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions