From: Jonas Bonn Date: Thu, 17 Jan 2008 23:21:13 +0000 (-0800) Subject: jbd: do not try lock_acquire after handle made invalid X-Git-Tag: v2.6.24~54 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f63dcda197bd71c6565c2121bf70e3d371539f90;p=linux-2.6-omap-h63xx.git jbd: do not try lock_acquire after handle made invalid This likely fixes the oops in __lock_acquire reported as: http://www.kerneloops.org/raw.php?rawid=2753&msgid= http://www.kerneloops.org/raw.php?rawid=2749&msgid= In these reported oopses, start_this_handle is returning -EROFS. Signed-off-by: Jonas Bonn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c index 08ff6c7028c..038ed743619 100644 --- a/fs/jbd/transaction.c +++ b/fs/jbd/transaction.c @@ -288,10 +288,12 @@ handle_t *journal_start(journal_t *journal, int nblocks) jbd_free_handle(handle); current->journal_info = NULL; handle = ERR_PTR(err); + goto out; } lock_acquire(&handle->h_lockdep_map, 0, 0, 0, 2, _THIS_IP_); +out: return handle; }