ext4: fix possible leak of s_journal_flag_rwsem in error path
authorVasily Averin <vvs@virtuozzo.com>
Wed, 7 Nov 2018 15:56:28 +0000 (10:56 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:24:12 +0000 (09:24 +0100)
commit181224f970c445bc3de2b3b42e30f2e2a294e30f
treecf55f31c44da218da7faa008cc12ff52fccf3c99
parent1124e5a89bd285468563df6723ceebab754735f6
ext4: fix possible leak of s_journal_flag_rwsem in error path

commit af18e35bfd01e6d65a5e3ef84ffe8b252d1628c5 upstream.

Fixes: c8585c6fcaf2 ("ext4: fix races between changing inode journal ...")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org # 4.7
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/super.c