In the Linux kernel, the following vulnerability has been resolved:
memory: pl353-smc: Fix refcount leak bug in pl353smcprobe()
The break of foreachavailablechildofnode() needs a corresponding ofnodeput() when the reference 'child' is not used anymore. Here we do not need to call ofnode_put() in fail path as '!match' means no break.
While the ofplatformdevice_create() will created a new reference by 'child' but it has considered the refcounting.