]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/mtd/mtd_blkdevs.c
mtd: mtd_blkdevs: fix double free on error path
[mv-sheeva.git] / drivers / mtd / mtd_blkdevs.c
index cb20c67995d8ba52652d8765b80dbceb82eba2b8..e0a2373bf0e2fe5ad6fc9423d5db19f96e25de5a 100644 (file)
@@ -413,7 +413,6 @@ error3:
 error2:
        list_del(&new->list);
 error1:
-       kfree(new);
        return ret;
 }