From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (Postfix) with ESMTP id 3546F29DFB for ; Thu, 1 Aug 2013 09:11:43 -0500 (CDT) Message-ID: <51FA6C9B.3010101@sgi.com> Date: Thu, 01 Aug 2013 09:11:39 -0500 From: Mark Tinguely MIME-Version: 1.0 Subject: Re: [PATCH] xfs:free bp in xlog_find_tail() error path References: <51F9BAFB.9000808@redhat.com> In-Reply-To: <51F9BAFB.9000808@redhat.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Eric Sandeen Cc: "'linux-xfs@oss.sgi.com'" On 07/31/13 20:33, 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 > --- > > p.s. this can be merged to userspace as well. Looks good. Reviewed-by: Mark Tinguely _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs