summaryrefslogtreecommitdiffstats
path: root/tools/include/nolibc/stdlib.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-03-06 06:30:46 +0100
committerBorislav Petkov (AMD) <bp@alien8.de>2024-03-06 10:22:19 +0100
commitbd17b7c34fadef645becde1245b9394f69f31702 (patch)
tree39f83088c8c14731d8adc6b7b399d8b5637fc66b /tools/include/nolibc/stdlib.h
parentRAS/AMD/FMPM: Add debugfs interface to print record entries (diff)
downloadlinux-bd17b7c34fadef645becde1245b9394f69f31702.tar.xz
linux-bd17b7c34fadef645becde1245b9394f69f31702.zip
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: 6f15e617cc99 ("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
Diffstat (limited to 'tools/include/nolibc/stdlib.h')
0 files changed, 0 insertions, 0 deletions