Commit 36baa6ed authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'tee-fix-for-v5.0' of...

Merge tag 'tee-fix-for-v5.0' of https://git.linaro.org/people/jens.wiklander/linux-tee into arm/fixes

OP-TEE driver
- add missing of_node_put after of_device_is_available

* tag 'tee-fix-for-v5.0' of https://git.linaro.org/people/jens.wiklander/linux-tee:
  tee: optee: add missing of_node_put after of_device_is_available
parents 014e90ca c7c0d8df
...@@ -699,8 +699,10 @@ static int __init optee_driver_init(void) ...@@ -699,8 +699,10 @@ static int __init optee_driver_init(void)
return -ENODEV; return -ENODEV;
np = of_find_matching_node(fw_np, optee_match); np = of_find_matching_node(fw_np, optee_match);
if (!np || !of_device_is_available(np)) if (!np || !of_device_is_available(np)) {
of_node_put(np);
return -ENODEV; return -ENODEV;
}
optee = optee_probe(np); optee = optee_probe(np);
of_node_put(np); of_node_put(np);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment