public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] exfat: Fix 2 issues found by static code analysis
@ 2026-03-03 10:59 Philipp Hahn
  2026-03-03 10:59 ` [PATCH] exfat: Fix bitwise operation having different size Philipp Hahn
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Philipp Hahn @ 2026-03-03 10:59 UTC (permalink / raw)
  To: Namjae Jeon, Sungjong Seo, Yuezhang Mo
  Cc: Philipp Hahn, linux-fsdevel, linux-kernel

Hello,

I'm going through our list of issues found by static code analysis using Klocwork.
It found two issues worth fixing:

1. The 1st seems to be a real bug due to C's integer coercion, where the
   inverted bitmask `s_blocksize` gets 0 extended.
2. The 2nd might just be a dead variable assignment, but maybe `num_clusters`
   is supposed to be returned or stored elsewhere?

I hope my alaysis is correct. If yes, please apply. Thank you.

Philipp Hahn (2):
  exfat: Fix bitwise operation having different size
  exfat: Drop dead assignment of num_clusters

 fs/exfat/dir.c   | 2 +-
 fs/exfat/inode.c | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-03-05 10:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-03 10:59 [PATCH] exfat: Fix 2 issues found by static code analysis Philipp Hahn
2026-03-03 10:59 ` [PATCH] exfat: Fix bitwise operation having different size Philipp Hahn
2026-03-03 10:59 ` [PATCH] exfat: Drop dead assignment of num_clusters Philipp Hahn
2026-03-03 11:50   ` Markus Elfring
2026-03-04  8:07     ` Philipp Hahn
2026-03-04  8:40 ` exfat: Fix 2 issues found by static code analysis Markus Elfring
2026-03-04 15:12   ` Philipp Hahn
2026-03-05 10:51     ` Markus Elfring
2026-03-04 10:25 ` [PATCH] " Namjae Jeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox