Return-Path: Received: from bombadil.infradead.org ([198.137.202.9]:49326 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751187AbcBLJ1g (ORCPT ); Fri, 12 Feb 2016 04:27:36 -0500 Date: Fri, 12 Feb 2016 01:27:35 -0800 From: Christoph Hellwig To: Mateusz Guzik Cc: xfs@oss.sgi.com, stable@vger.kernel.org Subject: Re: [PATCH] xfs: fix two memory leaks in xfs_attr_list.c error paths Message-ID: <20160212092735.GA27496@infradead.org> References: <1455129337-19255-1-git-send-email-mguzik@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1455129337-19255-1-git-send-email-mguzik@redhat.com> Sender: stable-owner@vger.kernel.org List-ID: On Wed, Feb 10, 2016 at 07:35:37PM +0100, Mateusz Guzik wrote: > This plugs 2 trivial leaks in xfs_attr_shortform_list and > xfs_attr3_leaf_list_int. Can you please add a out: label before the kmem_free at the end of the function, return the actual error value there and make all others returns after the kmem_alloc jump to that label?