linux-next/drivers/ras
Dan Carpenter bd17b7c34f RAS/AMD/FMPM: Fix off by one when unwinding on error
Decrement the index variable i before the first iteration when freeing
the remaining elements on error. Depending on where this fails it could
free something from one element beyond the end of the fru_records[]
array.

  [ bp: Massage commit message. ]

Fixes: 6f15e617cc ("RAS: Introduce a FRU memory poison manager")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/6fdec71a-846b-4cd0-af69-e5f6cd12f4f6@moroto.mountain
2024-03-06 10:22:19 +01:00
..
amd RAS/AMD/FMPM: Fix off by one when unwinding on error 2024-03-06 10:22:19 +01:00
cec.c RAS: Export helper to get ras_debugfs_dir 2024-03-01 16:55:10 +01:00
debugfs.c RAS: Export helper to get ras_debugfs_dir 2024-03-01 16:55:10 +01:00
debugfs.h RAS: Export helper to get ras_debugfs_dir 2024-03-01 16:55:10 +01:00
Kconfig RAS: Introduce a FRU memory poison manager 2024-02-20 18:56:15 +01:00
Makefile RAS: Introduce a FRU memory poison manager 2024-02-20 18:56:15 +01:00
ras.c RAS: Introduce AMD Address Translation Library 2024-01-24 12:49:35 +01:00