On Sat, Jan 24, 2026 at 06:20:54PM +0800, Haoxiang Li wrote:
> In fsl_mc_device_add(), device_initialize() is called first.
> put_device() should be called to drop the reference if error
> occurs. And other resources would be released via put_device
> -> fsl_mc_device_release. So remove redundant kfree() in
> error handling path.
> 
> Fixes: bbf9d17d9875 ("staging: fsl-mc: Freescale Management Complex (fsl-mc) 
> bus driver")
> Cc: [email protected]
> Reported-by: Dan Carpenter <[email protected]>
> Closes: 
> https://lore.kernel.org/all/[email protected]/
> Signed-off-by: Su Hui <[email protected]>
> Suggested-by: Christophe Leroy (CS GROUP) <[email protected]>
> Signed-off-by: Haoxiang Li <[email protected]>

Reviewed-by: Ioana Ciornei <[email protected]>


Reply via email to