diff options
| -rw-r--r-- | drivers/ras/cec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ras/cec.c b/drivers/ras/cec.c index 2d9ec378a8bc..88e4f3ff0cb8 100644 --- a/drivers/ras/cec.c +++ b/drivers/ras/cec.c | |||
| @@ -286,10 +286,10 @@ int cec_add_elem(u64 pfn) | |||
| 286 | if (!ce_arr.array || ce_arr.disabled) | 286 | if (!ce_arr.array || ce_arr.disabled) |
| 287 | return -ENODEV; | 287 | return -ENODEV; |
| 288 | 288 | ||
| 289 | ca->ces_entered++; | ||
| 290 | |||
| 291 | mutex_lock(&ce_mutex); | 289 | mutex_lock(&ce_mutex); |
| 292 | 290 | ||
| 291 | ca->ces_entered++; | ||
| 292 | |||
| 293 | if (ca->n == MAX_ELEMS) | 293 | if (ca->n == MAX_ELEMS) |
| 294 | WARN_ON(!del_lru_elem_unlocked(ca)); | 294 | WARN_ON(!del_lru_elem_unlocked(ca)); |
| 295 | 295 | ||
