Skip to content

mtd: concat: use flex array

Rosen Penev linux-hardening linux-mtd lkml 2 versions – Applied

Status from this message: Applied to mtd/next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 2 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2mtd: virt_concat: use single allocation for nodedrivers/mtd/mtd_virt_concat.c+2 -90 replies
2/2mtd: concat: replace alloc + calloc with 1 allocdrivers/mtd/mtd_virt_concat.c drivers/mtd/mtdconcat.c include/linux/mtd/concat.h+3 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/2] mtd: concat: use flex array

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