X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=drivers%2Fmtd%2Fubi%2Fwl.c;h=56065632a5b85ebf50022f883e1edc968a069f93;hb=6b238de189f69dc77d660d4cce62eed15547f4c3;hp=f73233fa737ca54d6efb012fbfbecf5b6ae50bef;hpb=1a31b20cd81d5cbc7ec6e24cb08066009a1ca32d;p=karo-tx-linux.git diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index f73233fa737c..56065632a5b8 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c @@ -1060,6 +1060,7 @@ static int __erase_worker(struct ubi_device *ubi, struct ubi_work *wl_wrk) /* Re-schedule the LEB for erasure */ err1 = schedule_erase(ubi, e, vol_id, lnum, 0); if (err1) { + wl_entry_destroy(ubi, e); err = err1; goto out_ro; }