Re: [PATCH] exfat: Fix 2 issues found by static code analysis

From: Namjae Jeon

Date: Wed Mar 04 2026 - 05:30:42 EST


On Tue, Mar 3, 2026 at 7:59 PM Philipp Hahn <phahn-oss@xxxxxx> wrote:
>
> 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
Applied them to #dev.
Thanks!