From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755141Ab1HKJwt (ORCPT ); Thu, 11 Aug 2011 05:52:49 -0400 Received: from mgw2.diku.dk ([130.225.96.92]:33926 "EHLO mgw2.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754941Ab1HKJwr (ORCPT ); Thu, 11 Aug 2011 05:52:47 -0400 Date: Thu, 11 Aug 2011 11:52:41 +0200 (CEST) From: Julia Lawall To: Dan Carpenter Cc: Paul Moore , kernel-janitors@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net/netlabel/netlabel_kapi.c: add missing cleanup code In-Reply-To: <20110811094407.GG3777@shale.localdomain> Message-ID: References: <1313055633-25327-1-git-send-email-julia@diku.dk> <20110811094407.GG3777@shale.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 Aug 2011, Dan Carpenter wrote: > On Thu, Aug 11, 2011 at 11:40:33AM +0200, Julia Lawall wrote: > > From: Julia Lawall > > > > Use the same cleanup code for the failure of kzalloc as for the failure of > > kstrdup just below. > > > > That doesn't work. The kfree(entry->domain) would cause an oops. Of course... Thanks! julia