Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: dsa: Add missing of_node_put() in dsa_port_link_register_of
[ Upstream commit fc06b28 ] The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. of_node_put() will check for NULL value. Fixes: a20f997 ("net: dsa: Don't instantiate phylink for CPU/DSA ports unless needed") Signed-off-by: Miaoqian Lin <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information