[PATCH] i3c: master: Fix device_register() error path

Alexandre Belloni alexandre.belloni at bootlin.com
Mon Jul 20 09:11:42 PDT 2026


On Thu, 02 Jul 2026 21:36:44 +0300, Adrian Hunter wrote:
> When device_register() fails in i3c_master_register_new_i3c_devs(),
> put_device() is called to drop the reference taken by
> device_register().  That drops the last reference, so the device's
> release callback i3c_device_release() runs and frees the i3c_device.
> 
> Two problems follow from that:
> 
> [...]

Applied, thanks!

[1/1] i3c: master: Fix device_register() error path
      https://git.kernel.org/i3c/c/a2714ef178e0

Best regards,



More information about the linux-i3c mailing list