In the Linux kernel, the following vulnerability has been resolved:
ASoc: audio-graph-card2: Fix refcount leak bug in _graphget_type()
We should call ofnodeput() for the reference before its replacement as it returned by ofgetparent() which has increased the refcount. Besides, we should also call ofnodeput() before return.