[PATCH 1/6] spi: fix NULL pointer dereference for board info devices

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 23 23:19:09 PST 2026


On Thu, 19 Nov 2026 19:58:11 +0100, Ahmad Fatoum wrote:
> Devices registered with spi_register_board_info() have no device node,
> but spi_new_device() unconditionally stores the new device in it.
> 
> The at91sam9m10g45ek board, which has the Atmel SPI driver enabled in
> its defconfig, still registers its devices this way. Let's add an
> of_node_set_dev() helper that only sets the node's device if there is
> a node and use it here.
> 
> [...]

Applied, thanks!

[1/6] spi: fix NULL pointer dereference for board info devices
      https://git.pengutronix.de/cgit/barebox/commit/?id=cf00a1ea1bfc (link may not be stable)
[2/6] driver: pass the requested node to the rescan hook
      https://git.pengutronix.de/cgit/barebox/commit/?id=22d993692cd0 (link may not be stable)
[3/6] i2c: factor out of_i2c_register_device()
      https://git.pengutronix.de/cgit/barebox/commit/?id=91246097b638 (link may not be stable)
[4/6] i2c: allow creating siblings on demand while populating the bus
      https://git.pengutronix.de/cgit/barebox/commit/?id=6433a89b6339 (link may not be stable)
[5/6] spi: factor out spi_of_register_slave()
      https://git.pengutronix.de/cgit/barebox/commit/?id=b09871d81629 (link may not be stable)
[6/6] spi: allow creating siblings on demand while populating the bus
      https://git.pengutronix.de/cgit/barebox/commit/?id=940243e14d3b (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list