Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750730AbWEVKZH (ORCPT ); Mon, 22 May 2006 06:25:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750729AbWEVKZG (ORCPT ); Mon, 22 May 2006 06:25:06 -0400 Received: from thunk.org ([69.25.196.29]:5004 "EHLO thunker.thunk.org") by vger.kernel.org with ESMTP id S1750723AbWEVKYm (ORCPT ); Mon, 22 May 2006 06:24:42 -0400 To: ext2-devel@lists.sourceforge.net cc: linux-kernel@vger.kernel.org Subject: [PATCH] Fix memory leak when the ext3's journal file is corrupted From: "Theodore Ts'o" Phone: (781) 391-3464 Message-Id: Date: Sun, 21 May 2006 19:08:34 -0400 X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 745 Lines: 22 Fix memory leak when the ext3's journal file is corrupted Signed-off-by: "Theodore Ts'o" Index: linux-2.6/fs/jbd/recovery.c =================================================================== --- linux-2.6.orig/fs/jbd/recovery.c 2006-05-21 18:39:27.000000000 -0400 +++ linux-2.6/fs/jbd/recovery.c 2006-05-21 18:39:34.000000000 -0400 @@ -531,6 +531,7 @@ default: jbd_debug(3, "Unrecognised magic %d, end of scan.\n", blocktype); + brelse(bh); goto done; } } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/