[PATCH] i3c: Fix potential refcount leak in i3c_master_register_new_i3c_devs

Alexandre Belloni alexandre.belloni at bootlin.com
Mon Sep 25 15:06:38 PDT 2023


On Thu, 21 Sep 2023 16:24:10 +0800, Dinghao Liu wrote:
> put_device() needs to be called on failure of device_register()
> to give up the reference initialized in it to avoid refcount leak.
> 
> 

Applied, thanks!

[1/1] i3c: Fix potential refcount leak in i3c_master_register_new_i3c_devs
      commit: cab63f64887616e3c4e31cfd8103320be6ebc8d3

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the linux-i3c mailing list