net: ipa: Add missing of_node_put() in ipa_firmware_load()
[ Upstream commit b244163f2c ]
This node pointer is returned by of_parse_phandle() with refcount
incremented in this function. of_node_put() on it before exiting
this function.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Acked-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5cc0cf735f
commit
d2801d1118
@@ -589,6 +589,7 @@ static int ipa_firmware_load(struct device *dev)
|
||||
}
|
||||
|
||||
ret = of_address_to_resource(node, 0, &res);
|
||||
of_node_put(node);
|
||||
if (ret) {
|
||||
dev_err(dev, "error %d getting \"memory-region\" resource\n",
|
||||
ret);
|
||||
|
||||
Reference in New Issue
Block a user