diff options
| author | Colin Ian King <[email protected]> | 2025-06-24 20:10:32 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2025-06-26 18:49:37 +0000 |
| commit | c13d38bc9b00eaab19ba4d7608677371d2d2f480 (patch) | |
| tree | c6617ea35a2d781282effe5f4919054af09d6fbf /lib/crypto/mpi/mpiutil.c | |
| parent | ACPI: APEI: EINJ: prevent memory corruption in error_type_set() (diff) | |
| download | kernel-c13d38bc9b00eaab19ba4d7608677371d2d2f480.tar.gz kernel-c13d38bc9b00eaab19ba4d7608677371d2d2f480.zip | |
ACPI: APEI: EINJ: Fix less than zero comparison on a size_t variable
The check for c < 0 is always false because variable c is a size_t which
is not a signed type. Fix this by making c a ssize_t.
Fixes: 90711f7bdf76 ("ACPI: APEI: EINJ: Create debugfs files to enter device id and syndrome")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Ira Weiny <[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
