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

Namjae Jeon <[email protected]> Tue, 28 Jul 2026 17:51:16 +0900
Newsgroups dev.linux.lists.exfat,org.kernel.vger.linux-kernel
Message-ID <CAKYAXd_8jbP0nFq9tcf83yvvYHYWP5JCz6DytJQZCcfHdxubfA@mail.gmail.com>
On Tue, Jul 28, 2026 at 1:29=E2=80=AFPM Yichong Chen <chenyichong@uniontech=
.com> 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 <[email protected]>
Applied it to #dev.
Thanks!