summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/fat/dir.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/fat/dir.c b/fs/fat/dir.c
index 814ad2c2ba80..054acd9fd033 100644
--- a/fs/fat/dir.c
+++ b/fs/fat/dir.c
@@ -88,9 +88,7 @@ static int fat__get_entry(struct inode *dir, loff_t *pos,
88 int err, offset; 88 int err, offset;
89 89
90next: 90next:
91 if (*bh) 91 brelse(*bh);
92 brelse(*bh);
93
94 *bh = NULL; 92 *bh = NULL;
95 iblock = *pos >> sb->s_blocksize_bits; 93 iblock = *pos >> sb->s_blocksize_bits;
96 err = fat_bmap(dir, iblock, &phys, &mapped_blocks, 0, false); 94 err = fat_bmap(dir, iblock, &phys, &mapped_blocks, 0, false);