]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: fix double-cleanup when CUI recovery fails
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Jan 2017 15:39:00 +0000 (16:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:44 +0000 (11:39 +0100)
commitd9c7c9fa600acb0d587678cc71565316d11ec7ad
treecf1fa1782465694ea79a117a4c14def8d6ce79c5
parentaa38f370b25acc478be36e237e882e78f71c67e5
xfs: fix double-cleanup when CUI recovery fails

commit 7a21272b088894070391a94fdd1c67014020fa1d 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>
fs/xfs/xfs_refcount_item.c