[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130115185006.340332175@linuxfoundation.org>
Date: Tue, 15 Jan 2013 10:50:42 -0800
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
alan@...rguk.ukuu.org.uk, Guo Chao <yan@...ux.vnet.ibm.com>,
"Theodore Tso" <tytso@....edu>,
"Darrick J. Wong" <darrick.wong@...cle.com>
Subject: [ 115/221] ext4: release buffer in failed path in dx_probe()
3.7-stable review patch. If anyone has any objections, please let me know.
------------------
From: Guo Chao <yan@...ux.vnet.ibm.com>
commit 0ecaef0644973e9006fdbc6974301047aaff9bc6 upstream.
If checksum fails, we should also release the buffer
read from previous iteration.
Signed-off-by: Guo Chao <yan@...ux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@....edu>
Reviewed-by: "Darrick J. Wong" <darrick.wong@...cle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
fs/ext4/namei.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/ext4/namei.c
+++ b/fs/ext4/namei.c
@@ -725,7 +725,7 @@ dx_probe(const struct qstr *d_name, stru
ext4_warning(dir->i_sb, "Node failed checksum");
brelse(bh);
*err = ERR_BAD_DX_DIR;
- goto fail;
+ goto fail2;
}
set_buffer_verified(bh);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists