projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15b9bc9
)
drm/amdgpu: Fix potential uninitialized use of 'idle' in amdgpu_ids.c
author
Harry Wentland
<
[email protected]
>
Fri, 9 Feb 2018 17:15:45 +0000
(12:15 -0500)
committer
Alex Deucher
<
[email protected]
>
Mon, 19 Feb 2018 19:19:57 +0000
(14:19 -0500)
v2: Use NULL and reverse christmas tree ordering
Signed-off-by: Harry Wentland <
[email protected]
>
Reviewed-by: Alex Deucher <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
index 7d2805729c201d2dd71a6abf988ca202081de0b1..563e74755aabf3a630e880e3ed395b1c085072ee 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
+++ b/
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c
@@
-406,7
+406,8
@@
int amdgpu_vmid_grab(struct amdgpu_vm *vm, struct amdgpu_ring *ring,
struct amdgpu_device *adev = ring->adev;
unsigned vmhub = ring->funcs->vmhub;
struct amdgpu_vmid_mgr *id_mgr = &adev->vm_manager.id_mgr[vmhub];
- struct amdgpu_vmid *id, *idle;
+ struct amdgpu_vmid *idle = NULL;
+ struct amdgpu_vmid *id = NULL;
int r = 0;
mutex_lock(&id_mgr->lock);