diff options
| author | Colin Ian King <[email protected]> | 2025-06-24 20:29:37 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-06-26 18:52:26 +0000 |
| commit | 0fd0541b6770b190afa9534c9208c0aa774d533c (patch) | |
| tree | 60489480def811ba271efdb9f75cbbb195befd67 /lib/crypto/mpi/mpiutil.c | |
| parent | ACPI: APEI: EINJ: Fix less than zero comparison on a size_t variable (diff) | |
| download | kernel-0fd0541b6770b190afa9534c9208c0aa774d533c.tar.gz kernel-0fd0541b6770b190afa9534c9208c0aa774d533c.zip | |
ACPI: APEI: EINJ: Fix check and iounmap of uninitialized pointer p
In the case where a request_mem_region call fails and pointer r is null
the error exit path via label 'out' will check for a non-null pointer
p and try to iounmap it. However, pointer p has not been assigned a
value at this point, so it may potentially contain any garbage value.
Fix this by ensuring pointer p is initialized to NULL.
Fixes: 1a35c88302a3 ("ACPI: APEI: EINJ: Fix kernel test sparse warnings")
Signed-off-by: Colin Ian King <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
