]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: cancel failed transaction in xfs_fs_commit_blocks()
authorEric Sandeen <sandeen@sandeen.net>
Mon, 23 Feb 2015 23:15:18 +0000 (10:15 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 23 Feb 2015 23:15:18 +0000 (10:15 +1100)
commitc4f6d34683f4bfd558973e33b86983d582795757
tree37df1f495145231bb6ac5ca8de571849ae0c1aa8
parent8a175ef192cc2d81769cd214d5853d8a3fbf99b4
xfs: cancel failed transaction in xfs_fs_commit_blocks()

If xfs_trans_reserve fails we don't cancel the transaction,
and we'll leak the allocated transaction pointer.

Spotted by Coverity.

Signed-off-by: Eric Sandeen <ssandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_pnfs.c