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.

pstore/ramoops: Fix ECC parameter help text

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>

authored by

Guilherme G. Piccoli and committed by
Kees Cook
b22462c7 80632e33

+1 -1
+1 -1
fs/pstore/ram.c
··· 71 71 72 72 static int ramoops_ecc; 73 73 module_param_named(ecc, ramoops_ecc, int, 0400); 74 - MODULE_PARM_DESC(ramoops_ecc, 74 + MODULE_PARM_DESC(ecc, 75 75 "if non-zero, the option enables ECC support and specifies " 76 76 "ECC buffer size in bytes (1 is a special value, means 16 " 77 77 "bytes ECC)");