Re: [PATCH v2] exfat: fix refcount leak in exfat_find

From: Markus Elfring

Date: Tue Oct 21 2025 - 05:21:11 EST



> Function `exfat_get_dentry_set` would increase the reference counter of
> `es->bh` on success. Therefore, `exfat_put_dentry_set` must be called
> after `exfat_get_dentry_set` to ensure refcount consistency. This patch
> relocate two checks to avoid possible leaks.


* Would it be preferred to refer to the term “reference count” in consistent ways?

* I see possibilities to improve such a change description another bit.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.18-rc1#n94


Regards,
Markus