xfs: fix use-after-free when aborting corrupt attr inactivation
commit
e8d613a892042cd70087a39893cd1a6f1f4a40b7 upstream.
Log the corrupt buffer before we release the buffer.
Fixes: 3f092aea7c1fe ("xfs: always log corruption errors")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>