xfs:free bp in xlog_find_tail() error path
authorEric Sandeen <sandeen@redhat.com>
Thu, 1 Aug 2013 01:33:47 +0000 (20:33 -0500)
committerBen Myers <bpm@sgi.com>
Tue, 13 Aug 2013 20:49:51 +0000 (15:49 -0500)
commit050a1952c3f9304eccddc4f084e2401b5205ff55
treee36a2c47600197b7e7d7fe12c3051f1887d55eb2
parent5d0a654974c5cac03ce7c577bcfd6bca0f2b2c5a
xfs:free bp in xlog_find_tail() error path

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

There is no error target, so manually free the bp before
returning the error.

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