linux/fs/jbd2
Taesoo Kim 22508742b9 jbd2: fix incorrect unlock on j_list_lock
commit 559cce698e upstream.

When 'jh->b_transaction == transaction' (asserted by below)

  J_ASSERT_JH(jh, (jh->b_transaction == transaction || ...

'journal->j_list_lock' will be incorrectly unlocked, since
the the lock is aquired only at the end of if / else-if
statements (missing the else case).

Signed-off-by: Taesoo Kim <tsgatesv@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Fixes: 6e4862a5bb
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2017-02-23 03:54:14 +00:00
..
checkpoint.c jbd2: avoid infinite loop when destroying aborted journal 2015-10-19 11:17:07 +01:00
commit.c jbd2: avoid infinite loop when destroying aborted journal 2015-10-19 11:17:07 +01:00
journal.c jbd2: fix FS corruption possibility in jbd2_journal_destroy() on umount path 2016-05-01 00:05:57 +02:00
Kconfig jbd2: remove debug dependency on debug_fs and update Kconfig help text 2013-06-12 23:07:51 -04:00
Makefile [PATCH] jbd2: rename jbd2 symbols to avoid duplication of jbd symbols 2006-10-11 11:14:15 -07:00
recovery.c jbd2: fix r_count overflows leading to buffer overflow in journal recovery 2015-05-28 10:00:03 +01:00
revoke.c jbd2: fix r_count overflows leading to buffer overflow in journal recovery 2015-05-28 10:00:03 +01:00
transaction.c jbd2: fix incorrect unlock on j_list_lock 2017-02-23 03:54:14 +00:00