Re: [PATCH v1] tmpfs: Unsigned expression compared with zero

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guanjing,

Em 20/11/2024 07:51, guanjing escreveu:
The return value from the call to utf8_parse_version() is not
of the unsigned type.

However, the return value is being assigned to an unsigned int
variable 'version'. This will result in the inability to handle
errors that occur when parsing a UTF-8 version number from
a string.

Additionally, this patch can help eliminate the following
Coccicheck warning:

mm/shmem.c:4378:6-13: WARNING: Unsigned expression compared with zero: version < 0

Fixes: 58e55efd6c72 ("tmpfs: Add casefold lookup support")
Signed-off-by: guanjing <guanjing@xxxxxxxxxxxxxxxxxxxx>

Another fix was already sent: https://lore.kernel.org/lkml/20241111-unsignedcompare1601569-v1-1-c4a9c3c75a52@xxxxxxxxx/




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux