]> www.infradead.org Git - linux.git/commit
exfat: fix memory leak in exfat_load_bitmap()
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Tue, 3 Sep 2024 07:01:09 +0000 (15:01 +0800)
committerNamjae Jeon <linkinjeon@kernel.org>
Tue, 17 Sep 2024 22:40:58 +0000 (07:40 +0900)
commitd2b537b3e533f28e0d97293fe9293161fe8cd137
treed24c378472eacec1ecad18554e0af2e4115fb10e
parentf761fcdd289d07e8547fef7ac76c3760fc7803f2
exfat: fix memory leak in exfat_load_bitmap()

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: 1e49a94cf707 ("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>
fs/exfat/balloc.c