mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
RAS/CEC: Increment cec_entered under the mutex lock
Modify ->cec_entered in the critical section of the mutex. Signed-off-by: WANG Chao <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Cc: Tony Luck <[email protected]> Cc: linux-edac <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
This commit is contained in:
parent
28156d7678
commit
09cbd2197e
1 changed files with 2 additions and 2 deletions
|
|
@ -286,10 +286,10 @@ int cec_add_elem(u64 pfn)
|
|||
if (!ce_arr.array || ce_arr.disabled)
|
||||
return -ENODEV;
|
||||
|
||||
ca->ces_entered++;
|
||||
|
||||
mutex_lock(&ce_mutex);
|
||||
|
||||
ca->ces_entered++;
|
||||
|
||||
if (ca->n == MAX_ELEMS)
|
||||
WARN_ON(!del_lru_elem_unlocked(ca));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue