Files
linux/fs/xfs/xfs_refcount_item.c
Darrick J. Wong d9c7c9fa60 xfs: fix double-cleanup when CUI recovery fails
commit 7a21272b08 upstream.

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>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-12 11:39:44 +01:00

14 KiB