Loading drivers/mtd/ubi/vtbl.c +5 −6 Original line number Diff line number Diff line Loading @@ -317,14 +317,13 @@ static int create_vtbl(const struct ubi_device *ubi, struct ubi_scan_info *si, return err; write_error: kfree(new_seb); /* Maybe this physical eraseblock went bad, try to pick another one */ if (++tries <= 5) { if (++tries <= 5) err = ubi_scan_add_to_list(si, new_seb->pnum, new_seb->ec, &si->corr); kfree(new_seb); if (!err) goto retry; } out_free: ubi_free_vid_hdr(ubi, vid_hdr); return err; Loading Loading
drivers/mtd/ubi/vtbl.c +5 −6 Original line number Diff line number Diff line Loading @@ -317,14 +317,13 @@ static int create_vtbl(const struct ubi_device *ubi, struct ubi_scan_info *si, return err; write_error: kfree(new_seb); /* Maybe this physical eraseblock went bad, try to pick another one */ if (++tries <= 5) { if (++tries <= 5) err = ubi_scan_add_to_list(si, new_seb->pnum, new_seb->ec, &si->corr); kfree(new_seb); if (!err) goto retry; } out_free: ubi_free_vid_hdr(ubi, vid_hdr); return err; Loading