Re: [PATCH] mm: shmem: Fix variable type to int to evaluate negative conditions

From: André Almeida
Date: Mon Nov 11 2024 - 12:21:13 EST


Em 11/11/2024 14:10, Karan Sanghavi escreveu:
version variable captures return value from utf8_parse_version
function which can be negative, but unsigned won't
let it capture, thus missing the further checks on negative values.

Fixes: 58e55efd6c72 ("tmpfs: Add casefold lookup support")
Signed-off-by: Karan Sanghavi <karansanghvi98@xxxxxxxxx>

Reviewed-by: André Almeida <andrealmeid@xxxxxxxxxx>