From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Schirmer Subject: Re: [PATCH] [STACK] >3k call path in ide Date: Wed, 16 Jun 2004 11:55:52 +0200 Sender: linux-ide-owner@vger.kernel.org Message-ID: <40D01928.1080309@tuxbox.org> References: <20040609122921.GG21168@wohnheim.fh-wedel.de> <20040615163445.6b886383.rddunlap@osdl.org> <200406160911.11985.jolt@tuxbox.org> <20040616094737.GA2548@wohnheim.fh-wedel.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from ipx-98-250-190-80.ipxserver.de ([80.190.250.98]:61704 "EHLO taytron.net") by vger.kernel.org with ESMTP id S266227AbUFPJ4N (ORCPT ); Wed, 16 Jun 2004 05:56:13 -0400 In-Reply-To: <20040616094737.GA2548@wohnheim.fh-wedel.de> List-Id: linux-ide@vger.kernel.org To: =?ISO-8859-1?Q?J=F6rn_Engel?= Cc: "Randy.Dunlap" , akpm , B.Zolnierkiewicz@elka.pw.edu.pl, linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Hi, >Leak memory. I also tend to depend on the fact that kfree(NULL) works >just fine: > >err_kfree: > kfree(cfginfo); > kfree(def_cte); > kfree(tbuf); > printk(KERN_NOTICE "ide-cs: ide_config failed memory allocation\n"); > goto failed; > >Makes the error path a little simpler. > > Nope. It will deadlock just like the original patch because failed falls through to err_kfree which then will jump to failed... Regards, Florian