diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-06-17 13:11:19 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-17 11:34:25 -0700 |
commit | b244163f2c45c12053cb0291c955f892e79ed8a9 (patch) | |
tree | 5d9dada7cb3f1987d13814a22af1ffdf689af6f2 /drivers/net/ipa | |
parent | 2d8ea148e553e1dd4e80a87741abdfb229e2b323 (diff) |
net: ipa: Add missing of_node_put() in ipa_firmware_load()
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>
Diffstat (limited to 'drivers/net/ipa')
-rw-r--r-- | drivers/net/ipa/ipa_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ipa/ipa_main.c b/drivers/net/ipa/ipa_main.c index 2243e3e5b7ea..f82130db32f6 100644 --- a/drivers/net/ipa/ipa_main.c +++ b/drivers/net/ipa/ipa_main.c @@ -530,6 +530,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); |