From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f46.google.com ([209.85.220.46]:32777 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932638AbbI3Qts (ORCPT ); Wed, 30 Sep 2015 12:49:48 -0400 Date: Wed, 30 Sep 2015 09:49:45 -0700 From: Brian Norris To: Boris Brezillon Cc: David Woodhouse , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] mtd: mtdpart: fix add_mtd_partitions error path Message-ID: <20150930164945.GD143959@google.com> References: <1438251483-20888-1-git-send-email-boris.brezillon@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1438251483-20888-1-git-send-email-boris.brezillon@free-electrons.com> Sender: stable-owner@vger.kernel.org List-ID: On Thu, Jul 30, 2015 at 12:18:03PM +0200, Boris Brezillon wrote: > If we fail to allocate a partition structure in the middle of the partition > creation process, the already allocated partitions are never removed, which > means they are still present in the partition list and their resources are > never freed. > > Signed-off-by: Boris Brezillon > Cc: stable@vger.kernel.org Pushed to l2-mtd.git, thanks