Thread (5 messages) 5 messages, 4 authors, 2026-01-28

Re: [PATCH v3] bus: fsl-mc: fix an error handling in fsl_mc_device_add()

From: "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>
Date: 2026-01-28 12:43:54
Also in: lkml, stable

On Sat, 24 Jan 2026 18:20:54 +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.


[...]
Applied, thanks!

[1/1] bus: fsl-mc: fix an error handling in fsl_mc_device_add()
      commit: 52f527d0916bcdd7621a0c9e7e599b133294d495

Best regards,
-- 
Christophe Leroy (CS GROUP) [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help