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 859c6b1 commit c8d826fCopy full SHA for c8d826f
fs/exfat/balloc.c
@@ -110,18 +110,18 @@ int exfat_load_bitmap(struct super_block *sb)
110
return -EIO;
111
112
type = exfat_get_entry_type(ep);
113
- if (type == TYPE_UNUSED)
114
- break;
115
- if (type != TYPE_BITMAP)
116
- continue;
117
- if (ep->dentry.bitmap.flags == 0x0) {
+ if (type == TYPE_BITMAP &&
+ ep->dentry.bitmap.flags == 0x0) {
118
int err;
119
120
err = exfat_allocate_bitmap(sb, ep);
121
brelse(bh);
122
return err;
123
}
124
+
+ if (type == TYPE_UNUSED)
+ return -EINVAL;
125
126
127
if (exfat_get_next_cluster(sb, &clu.dir))
0 commit comments