amdgpu: fix a valgrind warning
==10307== Conditional jump or move depends on uninitialised value(s) ==10307== at 0xB9F4CFA: amdgpu_device_initialize (amdgpu_device.c:193) Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>main
parent
4b39a8e7cf
commit
2d588797f1
|
@ -133,7 +133,7 @@ int amdgpu_device_initialize(int fd,
|
|||
int r;
|
||||
int flag_auth = 0;
|
||||
int flag_authexist=0;
|
||||
uint32_t accel_working;
|
||||
uint32_t accel_working = 0;
|
||||
|
||||
*device_handle = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue