]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
xfs: fix double-cleanup when CUI recovery fails
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 4 Jan 2017 02:39:32 +0000 (18:39 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 4 Jan 2017 02:39:32 +0000 (18:39 -0800)
commit7a21272b088894070391a94fdd1c67014020fa1d
tree7e027d557b0a726a76d9db6e7179c590473474e3
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88
xfs: fix double-cleanup when CUI recovery fails

Dan Carpenter reported a double-free of rcur if _defer_finish fails
while we're recovering CUI items.  Fix the error recovery to prevent
this.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_refcount_item.c