Re: [PATCH][next] ACPI: APEI: EINJ: Fix less than zero comparison on a size_t variable

From: Ira Weiny
Date: Tue Jun 24 2025 - 17:09:28 EST


Colin Ian King wrote:
> 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 <colin.i.king@xxxxxxxxx>

Reviewed-by: Ira Weiny <ira.weiny@xxxxxxxxx>

[snip]