Re: [PATCH][next] ACPI: APEI: EINJ: Fix less than zero comparison on a size_t variable
From: Rafael J. Wysocki
Date: Thu Jun 26 2025 - 14:51:58 EST
On Tue, Jun 24, 2025 at 11:09 PM Ira Weiny <ira.weiny@xxxxxxxxx> wrote:
>
> 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>
Applied, thanks!