xfs: free bp in xlog_find_zeroed() error path
authorEric Sandeen <sandeen@redhat.com>
Thu, 1 Aug 2013 01:32:30 +0000 (20:32 -0500)
committerBen Myers <bpm@sgi.com>
Tue, 13 Aug 2013 20:48:51 +0000 (15:48 -0500)
commit5d0a654974c5cac03ce7c577bcfd6bca0f2b2c5a
treee6d26c956a88bf1c9197257bc0d40f7aebcdc516
parent6dd93e9e5eb19e81a74b3df8426a945a08ad8a1f
xfs: free bp in xlog_find_zeroed() error path

xlog_find_zeroed() currently leaks a bp on one error path.

Using the bp_err: target resolves this.

Found by Coverity.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_log_recover.c