[PATCH] mtd: mtdpart: fix add_mtd_partitions error path

Brian Norris computersforpeace at gmail.com
Wed Sep 30 09:49:45 PDT 2015


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 <boris.brezillon at free-electrons.com>
> Cc: stable at vger.kernel.org

Pushed to l2-mtd.git, thanks



More information about the linux-mtd mailing list