]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pstore/ramoops: Fix ECC parameter help text
authorGuilherme G. Piccoli <gpiccoli@igalia.com>
Wed, 18 Feb 2026 19:37:32 +0000 (16:37 -0300)
committerKees Cook <kees@kernel.org>
Tue, 31 Mar 2026 21:52:25 +0000 (14:52 -0700)
In order to set ECC on ramoops, the parameter "ecc" should be
used. The variable that carries this information is "ramoops_ecc".
Due to some confusion in the parameter setting functions, modinfo
ends-up showing both "ecc" and "ramoops_ecc" as valid parameters,
but only "ecc" is the valid one, hence this fix to the parameter
help text.

Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Link: https://patch.msgid.link/20260218193940.912143-3-gpiccoli@igalia.com
Signed-off-by: Kees Cook <kees@kernel.org>
fs/pstore/ram.c

index d1f895e57a95a7043d4ac3fd8a48c025af49c1c8..2eb0d4fa218695cabe4a386908d65fbb989bcf5e 100644 (file)
@@ -71,7 +71,7 @@ MODULE_PARM_DESC(max_reason,
 
 static int ramoops_ecc;
 module_param_named(ecc, ramoops_ecc, int, 0400);
-MODULE_PARM_DESC(ramoops_ecc,
+MODULE_PARM_DESC(ecc,
                "if non-zero, the option enables ECC support and specifies "
                "ECC buffer size in bytes (1 is a special value, means 16 "
                "bytes ECC)");