]> git.baikalelectronics.ru Git - kernel.git/commit
jbd2: add the missing unlock_buffer() in the error path of jbd2_write_superblock()
authorzhangyi (F) <yi.zhang@huawei.com>
Sat, 20 Jun 2020 06:19:48 +0000 (14:19 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Aug 2020 04:15:58 +0000 (00:15 -0400)
commitc25931cc96527ef99329b9d83b023554337fdee7
treeac33d8df2c61789f71d0ca1616002eb9e29d8da1
parent7d4b7b25b5c77fc078afa396719df6d7b37d462e
jbd2: add the missing unlock_buffer() in the error path of jbd2_write_superblock()

jbd2_write_superblock() is under the buffer lock of journal superblock
before ending that superblock write, so add a missing unlock_buffer() in
in the error path before submitting buffer.

Fixes: ec79659b71bc ("jbd2: check superblock mapped prior to committing")
Signed-off-by: zhangyi (F) <yi.zhang@huawei.com>
Reviewed-by: Ritesh Harjani <riteshh@linux.ibm.com>
Cc: stable@kernel.org
Link: https://lore.kernel.org/r/20200620061948.2049579-1-yi.zhang@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c