]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - fs/ocfs2/dir.c
ocfs2: fix a misuse a of brelse after failing ocfs2_check_dir_entry
[mirror_ubuntu-focal-kernel.git] / fs / ocfs2 / dir.c
index b048d4fa3959081bd1a857f0283d398b84515752..c121abbdfc7dbcfb28675aa7e62a4cb9a70633a1 100644 (file)
@@ -1897,8 +1897,7 @@ static int ocfs2_dir_foreach_blk_el(struct inode *inode,
                                /* On error, skip the f_pos to the
                                   next block. */
                                ctx->pos = (ctx->pos | (sb->s_blocksize - 1)) + 1;
-                               brelse(bh);
-                               continue;
+                               break;
                        }
                        if (le64_to_cpu(de->inode)) {
                                unsigned char d_type = DT_UNKNOWN;