]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Don't try to end a non-existent transaction in unlink
authorBob Peterson <rpeterso@redhat.com>
Mon, 29 Jan 2018 17:00:23 +0000 (10:00 -0700)
committerBob Peterson <rpeterso@redhat.com>
Mon, 29 Jan 2018 17:00:23 +0000 (10:00 -0700)
commit85f5ca19fd68586923a120ac73c7940e6fad1455
treec3345845f88e7b131a9c6d9cc1047cb3f75a53b0
parente26c14b48fe25ee2b2dfd77f6f04a47cc8571ac4
GFS2: Don't try to end a non-existent transaction in unlink

Before this patch, if function gfs2_unlink failed to get a valid
transaction (for example, not enough journal blocks) it would go
to label out_end_trans which did gfs2_trans_end. But if the
trans_begin failed, there's no transaction to end, and trying to
do so results in: kernel BUG at fs/gfs2/trans.c:117!

This patch changes the goto so that it does not try to end a
non-existent transaction.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/inode.c