linux/drivers/ras
William Roche 3a62583c28 RAS/CEC: Correct ce_add_elem()'s returned values
ce_add_elem() uses different return values to signal a result from
adding an element to the collector. Commit in Fixes: broke the case
where the element being added is not found in the array. Correct that.

 [ bp: Rewrite commit message, add kernel-doc comments. ]

Fixes: de0e0624d8 ("RAS/CEC: Check count_threshold unconditionally")
Signed-off-by: William Roche <william.roche@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: <stable@vger.kernel.org>
Link: https://lkml.kernel.org/r/1617722939-29670-1-git-send-email-william.roche@oracle.com
2021-04-07 11:52:26 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile RAS: Build debugfs.o only when enabled in Kconfig 2019-08-08 17:44:02 +02:00
cec.c RAS/CEC: Correct ce_add_elem()'s returned values 2021-04-07 11:52:26 +02:00
debugfs.c RAS: Fix prototype warnings 2019-08-08 17:39:57 +02:00
debugfs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ras.c RAS: Use consistent types for UUIDs 2019-01-25 16:40:40 +01:00