Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Correct the counts of nr_banks and nr_errors

Correct the counts of nr_banks and nr_errors

Signed-off-by: Ce Sun <cesun102@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Ce Sun and committed by
Alex Deucher
907813e5 8ed5f8d9

+2
+2
drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c
··· 76 76 list_for_each_entry_safe(node, tmp, &banks->list, node) { 77 77 list_del(&node->node); 78 78 kvfree(node); 79 + banks->nr_banks--; 79 80 } 80 81 } 81 82 ··· 239 238 240 239 mutex_lock(&aerr->lock); 241 240 list_add_tail(&bank_error->node, &aerr->list); 241 + aerr->nr_errors++; 242 242 mutex_unlock(&aerr->lock); 243 243 244 244 return bank_error;