From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vw0-f49.google.com ([209.85.212.49]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1Oq3wC-0005gp-O3 for linux-mtd@lists.infradead.org; Mon, 30 Aug 2010 12:58:13 +0000 Received: by vws11 with SMTP id 11so5535021vws.36 for ; Mon, 30 Aug 2010 05:58:12 -0700 (PDT) Subject: Re: [PATCH] mtd: Blackfin NFC: fix invalid free in remove() From: Artem Bityutskiy To: Mike Frysinger In-Reply-To: <1283028125-6027-1-git-send-email-vapier@gentoo.org> References: <1283028125-6027-1-git-send-email-vapier@gentoo.org> Content-Type: text/plain; charset="UTF-8" Date: Mon, 30 Aug 2010 15:58:06 +0300 Message-ID: <1283173086.12995.74.camel@brekeke> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: David Woodhouse , Andrew Morton , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, uclinux-dist-devel@blackfin.uclinux.org Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, 2010-08-28 at 16:42 -0400, Mike Frysinger wrote: > Since info->mtd isn't dynamically allocated, we shouldn't attempt to > kfree() it. Otherwise we get random fun corruption when unloading > the driver built as a module. > > Signed-off-by: Mike Frysinger > --- > note: this should be merged for 2.6.36 and probably sent to stable trees You send the same patch 2 times once with this note and the other time without this note. Which one should be ignored? -- Best Regards, Artem Bityutskiy (Битюцкий Артём)