[PATCHv2 0/2] mtd: concat: use flex array
Rosen Penev
rosenp at gmail.com
Thu Mar 5 14:44:08 PST 2026
Simplifies allocation. There may or may not be missing frees here. One
allocation is simpler to reason about.
v2: fix mistake in counted_by in first commit directly.
Rosen Penev (2):
mtd: virt_concat: use single allocation for node
mtd: concat: replace alloc + calloc with 1 alloc
drivers/mtd/mtd_virt_concat.c | 19 +++----------------
drivers/mtd/mtdconcat.c | 5 +----
include/linux/mtd/concat.h | 2 +-
3 files changed, 5 insertions(+), 21 deletions(-)
--
2.53.0
More information about the linux-mtd
mailing list