In the Linux kernel, the following vulnerability has been resolved:
remoteproc: qcomq6v5mss: Fix some leaks in q6v5allocmemory_region
The devicenode pointer is returned by ofparsephandle() or ofgetchildbyname() with refcount incremented. We should use ofnode_put() on it when done.
This function only call ofnodeput(node) when ofaddressto_resource succeeds, missing error cases.