Thread (15 messages) 15 messages, 4 authors, 2h ago

Re: [PATCH v6 1/9] block: partitions: of: Skip child nodes without reg property

From: Rob Herring <robh@kernel.org>
Date: 2026-06-30 18:02:20
Also in: linux-arm-msm, linux-block, linux-bluetooth, linux-devicetree, linux-mmc, linux-wireless, lkml, stable

On Mon, Jun 29, 2026 at 10:55:20AM +0200, Loic Poulain wrote:
Child nodes of a fixed-partitions node are not necessarily partition
entries, for example an nvmem-layout node has no reg property. The
current code passes a NULL reg pointer and uninitialized len to the
length check, which can result in a kernel panic or silent failure to
register any partitions.
That does not sound right to me. A fixed-partitions node should only be 
defining partitions with address ranges. I would expect a partition node 
could be nvmem-layout, but not the whole address range. If you wanted 
the latter, then just do:

partitions {
  ...
};

nvmem-layout {
  ...
};

Rob
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help