summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorShuhao Fu <sfual@cse.ust.hk>2026-01-23 10:37:21 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-30 10:28:48 +0100
commitfc9ce762525e73438d31b613f18bca92a4d3d578 (patch)
tree7d227e2312b3e752e4dbd58b4b697a125f89a517 /include/net/aligned_data.h
parent437a8711116e5095e95d8db9bc0e6c32b7773a69 (diff)
exfat: fix refcount leak in exfat_find
[ Upstream commit 9aee8de970f18c2aaaa348e3de86c38e2d956c1d ] Fix refcount leaks in `exfat_find` related to `exfat_get_dentry_set`. 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. Fixes: 82ebecdc74ff ("exfat: fix improper check of dentry.stream.valid_size") Fixes: 13940cef9549 ("exfat: add a check for invalid data size") Signed-off-by: Shuhao Fu <sfual@cse.ust.hk> Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Li hongliang <1468888505@139.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions