public inbox for linux-hardening@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 0/2] mtd: concat: use flex array
@ 2026-03-05 22:44 Rosen Penev
  2026-03-05 22:44 ` [PATCHv2 1/2] mtd: virt_concat: use single allocation for node Rosen Penev
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rosen Penev @ 2026-03-05 22:44 UTC (permalink / raw)
  To: linux-mtd
  Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra, Kees Cook,
	Gustavo A. R. Silva, open list,
	open list:KERNEL HARDENING (not covered by other areas):Keyword:b__counted_by(_le|_be)?b

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-03-11 15:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-05 22:44 [PATCHv2 0/2] mtd: concat: use flex array Rosen Penev
2026-03-05 22:44 ` [PATCHv2 1/2] mtd: virt_concat: use single allocation for node Rosen Penev
2026-03-05 22:44 ` [PATCHv2 2/2] mtd: concat: replace alloc + calloc with 1 alloc Rosen Penev
2026-03-11 15:25 ` [PATCHv2 0/2] mtd: concat: use flex array Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox