]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu: fix zeroing all IB fields manually v2
authorChristian König <christian.koenig@amd.com>
Tue, 18 Aug 2015 16:23:16 +0000 (18:23 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Aug 2015 21:05:34 +0000 (17:05 -0400)
commitb203dd95949ec8d5e30d53446408eb9a4d1bdc62
tree487953f129b674d1f2ea7b7fa9704de52f946ee7
parentbf7ebaeed4dca7c0a7f9d9a44efbd9f74cf22c5d
drm/amdgpu: fix zeroing all IB fields manually v2

The problem now is that we don't necessarily call amdgpu_ib_get()
in some error paths and so work with uninitialized data.

Better require that the memory is already zeroed.

v2: better commit message

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com> (v1)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c