public inbox for linux-hardening@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mtd: concat: use flex array
@ 2026-03-04 22:15 Rosen Penev
  2026-03-04 22:15 ` [PATCH 1/2] mtd: virt_concat: use single allocation for node Rosen Penev
  2026-03-04 22:15 ` [PATCH 2/2] mtd: concat: replace alloc + calloc with 1 alloc Rosen Penev
  0 siblings, 2 replies; 5+ messages in thread
From: Rosen Penev @ 2026-03-04 22:15 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.

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] 5+ messages in thread

end of thread, other threads:[~2026-03-05  8:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04 22:15 [PATCH 0/2] mtd: concat: use flex array Rosen Penev
2026-03-04 22:15 ` [PATCH 1/2] mtd: virt_concat: use single allocation for node Rosen Penev
2026-03-05  7:08   ` Philipp Matthias Hahn
2026-03-05  8:52     ` Rosen Penev
2026-03-04 22:15 ` [PATCH 2/2] mtd: concat: replace alloc + calloc with 1 alloc Rosen Penev

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