Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation: ACPI: EINJ: Fix obsolete example

Since commit 488dac0c9237 ("libfs: fix error cast of negative value in
simple_attr_write()"), the EINJ debugfs interface no longer accepts
negative values as input. Attempt to do so will result in EINVAL.

Fixes: 488dac0c9237 ("libfs: fix error cast of negative value in simple_attr_write()")
Signed-off-by: Qifu Zhang <zhangqifu@bytedance.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Qifu Zhang and committed by
Rafael J. Wysocki
9066e151 dd5e5554

+1 -1
+1 -1
Documentation/firmware-guide/acpi/apei/einj.rst
··· 168 168 0x00000008 Memory Correctable 169 169 0x00000010 Memory Uncorrectable non-fatal 170 170 # echo 0x12345000 > param1 # Set memory address for injection 171 - # echo $((-1 << 12)) > param2 # Mask 0xfffffffffffff000 - anywhere in this page 171 + # echo 0xfffffffffffff000 > param2 # Mask - anywhere in this page 172 172 # echo 0x8 > error_type # Choose correctable memory error 173 173 # echo 1 > error_inject # Inject now 174 174