From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net/netlabel/netlabel_kapi.c: add missing cleanup code Date: Thu, 11 Aug 2011 05:53:40 -0700 (PDT) Message-ID: <20110811.055340.41728083700098314.davem@davemloft.net> References: <20110811094407.GG3777@shale.localdomain> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: error27@gmail.com, paul@paul-moore.com, kernel-janitors@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: julia@diku.dk Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Julia Lawall Date: Thu, 11 Aug 2011 12:06:04 +0200 (CEST) > From: Julia Lawall > > Call cipso_v4_doi_putdef in the case of the failure of the allocation of > entry. Reverse the order of the error handling code at the end of the > function and insert more labels in order to reduce the number of > unnecessary calls to kfree. > > Signed-off-by: Julia Lawall Applied.