Revert "exfat: fix memory leak in exfat_load_bitmap()"

This reverts commit 6732e1af29.

Replaced by commit 4e1813e52f ("exfat: fix memory leak in exfat_load_bitmap()").

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I323d80bccfc1c1fa021d9b86433a766f7bbebe5b
This commit is contained in:
Tao Huang 2024-12-05 16:17:44 +08:00
parent 75588ef133
commit 8533b2249e

View file

@ -110,14 +110,10 @@ int exfat_load_bitmap(struct super_block *sb)
return -EIO;
type = exfat_get_entry_type(ep);
if (type == TYPE_UNUSED) {
brelse(bh);
if (type == TYPE_UNUSED)
break;
}
if (type != TYPE_BITMAP) {
brelse(bh);
if (type != TYPE_BITMAP)
continue;
}
if (ep->dentry.bitmap.flags == 0x0) {
int err;