android_kernel_xiaomi_sm8450/fs/exfat
Yuezhang Mo f692160d3e exfat: fix memory leak in exfat_load_bitmap()
commit d2b537b3e533f28e0d97293fe9293161fe8cd137 upstream.

If the first directory entry in the root directory is not a bitmap
directory entry, 'bh' will not be released and reassigned, which
will cause a memory leak.

Fixes: 1e49a94cf7 ("exfat: add bitmap operations")
Cc: stable@vger.kernel.org
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Aoyama Wataru <wataru.aoyama@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-10-17 15:08:22 +02:00
..
balloc.c exfat: fix memory leak in exfat_load_bitmap() 2024-10-17 15:08:22 +02:00
cache.c exfat: fix use of uninitialized spinlock on error path 2020-10-07 14:27:13 +09:00
dir.c exfat: check if filename entries exceeds max filename length 2023-08-11 11:57:55 +02:00
exfat_fs.h exfat: support dynamic allocate bh for exfat_entry_set_cache 2023-08-11 11:57:55 +02:00
exfat_raw.h exfat: fix shift-out-of-bounds in exfat_fill_super() 2021-03-04 11:38:41 +01:00
fatent.c exfat: check if cluster num is valid 2022-06-06 08:42:42 +02:00
file.c exfat: fix inode->i_blocks for non-512 byte sector size device 2023-03-11 16:39:56 +01:00
inode.c exfat: fix inode->i_blocks for non-512 byte sector size device 2023-03-11 16:39:56 +01:00
Kconfig exfat: Improve wording of EXFAT_DEFAULT_IOCHARSET config option 2020-06-09 16:48:39 +09:00
Makefile exfat: add Kconfig and Makefile 2020-03-05 21:00:40 -05:00
misc.c exfat: write multiple sectors at once 2020-08-12 08:31:11 +09:00
namei.c exfat: support handle zero-size directory 2023-11-28 16:54:52 +00:00
nls.c exfat: Avoid allocating upcase table using kcalloc() 2020-12-26 16:02:38 +01:00
super.c exfat: fix inode->i_blocks for non-512 byte sector size device 2023-03-11 16:39:56 +01:00