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 Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux