Skip to content

Commit

Permalink
Merge tag 'tee-fix-for-v5.0' of https://git.linaro.org/people/jens.wi…
Browse files Browse the repository at this point in the history
…klander/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
  • Loading branch information
arndb committed Mar 1, 2019
2 parents 014e90c + c7c0d8d commit 36baa6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/tee/optee/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,10 @@ static int __init optee_driver_init(void)
return -ENODEV;

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;
}

optee = optee_probe(np);
of_node_put(np);
Expand Down

0 comments on commit 36baa6e

Please sign in to comment.