diff options
| -rw-r--r-- | fs/ext4/dir.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c index 6d17f31a31d7..33f5e2a50cf8 100644 --- a/fs/ext4/dir.c +++ b/fs/ext4/dir.c | |||
| @@ -163,8 +163,11 @@ static int ext4_readdir(struct file *file, struct dir_context *ctx) | |||
| 163 | index, 1); | 163 | index, 1); |
| 164 | file->f_ra.prev_pos = (loff_t)index << PAGE_CACHE_SHIFT; | 164 | file->f_ra.prev_pos = (loff_t)index << PAGE_CACHE_SHIFT; |
| 165 | bh = ext4_bread(NULL, inode, map.m_lblk, 0); | 165 | bh = ext4_bread(NULL, inode, map.m_lblk, 0); |
| 166 | if (IS_ERR(bh)) | 166 | if (IS_ERR(bh)) { |
| 167 | return PTR_ERR(bh); | 167 | err = PTR_ERR(bh); |
| 168 | bh = NULL; | ||
| 169 | goto errout; | ||
| 170 | } | ||
| 168 | } | 171 | } |
| 169 | 172 | ||
| 170 | if (!bh) { | 173 | if (!bh) { |
