Re: [PATCH 0/2] Backport fixes for UBI

From: Richard Weinberger

Date: Wed Aug 19 2026 - 06:52:14 EST


----- Ursprüngliche Mail -----
> Von: "Dominique Martinet" <dominique.martinet@xxxxxxxxxxxxxxxxx>
> While looking at recent UBI patches I found these two commits that I
> believe are worth backporting.
>
> We're not using fastmap so I don't care much about the leak there, but
> reducing wear is always good to take
>
> Thanks!
>
> Signed-off-by: Dominique Martinet <dominique.martinet@xxxxxxxxxxxxxxxxx>
> ---
> Cheng Ming Lin (1):
> mtd: ubi: skip programming unused bits in ubi headers
>
> Liyuan Pang (1):
> ubi: fastmap: fix ubi->fm memory leak

While porting these back is not wrong, I have a hard time to see how the
current stables rules apply here.

"mtd: ubi: skip programming unused bits in ubi headers" does not fix anything.
It's a pure optimization for future flashes, UBI worked since ever without this
change.

"ubi: fastmap: fix ubi->fm memory leak" fixes a memory leak, yes. But only in a failure
path at attach time. Userspace cannot trigger this.

Thanks,
//richard