We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b64b00 commit d374184Copy full SHA for d374184
fs/exfat/balloc.c
@@ -91,18 +91,18 @@ int exfat_load_bitmap(struct super_block *sb)
91
return -EIO;
92
93
type = exfat_get_entry_type(ep);
94
- if (type == TYPE_UNUSED)
95
- break;
96
- if (type != TYPE_BITMAP)
97
- continue;
98
- if (ep->dentry.bitmap.flags == 0x0) {
+ if (type == TYPE_BITMAP &&
+ ep->dentry.bitmap.flags == 0x0) {
99
int err;
100
101
err = exfat_allocate_bitmap(sb, ep);
102
brelse(bh);
103
return err;
104
}
105
+
+ if (type == TYPE_UNUSED)
+ return -EINVAL;
106
107
108
if (exfat_get_next_cluster(sb, &clu.dir))
0 commit comments