OSDN Git Service

amdgpu: Fix a structure initialization issue
authorPan, Xinhui <Xinhui.Pan@amd.com>
Fri, 12 Apr 2019 05:42:01 +0000 (05:42 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 12 Apr 2019 16:38:41 +0000 (11:38 -0500)
commitfcf80e2fd7741c9140e5e2971f9742fe7a82f68e
tree32349c6164d12f61c4a017e223ce86c2d8795175
parent210bfdf8f8e7cada97797081ecec29c913ab6ab0
amdgpu: Fix a structure initialization issue

struct drmPciBusInfo has been aligned to 6 bytes. So memcmp will access
the last byte which is not initialized.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
tests/amdgpu/ras_tests.c