Re: [PATCH] exfat: free new directory cluster if zeroing fails

From: Namjae Jeon

Date: Tue Jul 28 2026 - 05:21:55 EST


On Tue, Jul 28, 2026 at 1:29 PM Yichong Chen <chenyichong@xxxxxxxxxxxxx> wrote:
>
> exfat_alloc_new_dir() allocates a cluster for a new directory before
> zeroing it. If exfat_zeroed_cluster() fails, the function returns the
> error but leaves the allocated cluster in use.
>
> Free the newly allocated cluster before returning the zeroing error.
>
> Signed-off-by: Yichong Chen <chenyichong@xxxxxxxxxxxxx>
Applied it to #dev.
Thanks!