xfs
[Top] [All Lists]

Re: [PATCH] xfs:free bp in xlog_find_tail() error path

To: Eric Sandeen <sandeen@xxxxxxxxxx>
Subject: Re: [PATCH] xfs:free bp in xlog_find_tail() error path
From: Ben Myers <bpm@xxxxxxx>
Date: Tue, 13 Aug 2013 16:34:34 -0500
Cc: "'linux-xfs@xxxxxxxxxxx'" <linux-xfs@xxxxxxxxxxx>
Delivered-to: linux-xfs@xxxxxxxxxxx
In-reply-to: <51F9BAFB.9000808@xxxxxxxxxx>
References: <51F9BAFB.9000808@xxxxxxxxxx>
User-agent: Mutt/1.5.20 (2009-06-14)
On Wed, Jul 31, 2013 at 08:33:47PM -0500, Eric Sandeen wrote:
> 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@xxxxxxxxxx>

Applied.

<Prev in Thread] Current Thread [Next in Thread>