diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-03-01 14:59:40 +0100 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-03-01 14:59:40 +0100 |
commit | 36baa6ed1cef280690b6240ff37a97f6299a02af (patch) | |
tree | c26f01640d3c3839c9e5ebb10f0f3b07d97ed9fb /drivers | |
parent | 014e90ca44eeb8434f135e26a3cc17e57d64d85d (diff) | |
parent | c7c0d8df0b94a67377555a550b8d66ee2ad2f4ed (diff) |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tee/optee/core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c index e5efce3c08e2..947f9b28de9e 100644 --- a/drivers/tee/optee/core.c +++ b/drivers/tee/optee/core.c @@ -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); |