| Submitter | Richard Weinberger |
|---|---|
| Date | June 29, 2012, 3:14 p.m. |
| Message ID | <1340982869-77042-10-git-send-email-richard@nod.at> |
| Download | mbox | patch |
| Permalink | /patch/168137/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/drivers/mtd/ubi/attach.c b/drivers/mtd/ubi/attach.c index c30a0f6..a343a41 100644 --- a/drivers/mtd/ubi/attach.c +++ b/drivers/mtd/ubi/attach.c @@ -1237,7 +1237,7 @@ static int scan_all(struct ubi_device *ubi, struct ubi_attach_info *ai, int star ech = kzalloc(ubi->ec_hdr_alsize, GFP_KERNEL); if (!ech) - goto out_ai; + return err; vidh = ubi_zalloc_vid_hdr(ubi, GFP_KERNEL); if (!vidh) @@ -1298,8 +1298,6 @@ out_vidh: ubi_free_vid_hdr(ubi, vidh); out_ech: kfree(ech); -out_ai: - destroy_ai(ai); return err; }