History

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

Arnd Bergmann committed 7 years ago

Commit 36baa6e2 parents 014e90c c7c0d8d1 file · +3 −1Browse files

Unified · Split

drivers/tee/optee/core.c+3−1
@@ -699,8 +699,10 @@ static int __init optee_driver_init(void) · 698 unmodified lines
699699 return -ENODEV;
700700
701701 np = of_find_matching_node(fw_np, optee_match);
702− if (!np || !of_device_is_available(np))
702+ if (!np || !of_device_is_available(np)) {
703+ of_node_put(np);
703704 return -ENODEV;
705+ }
704706
705707 optee = optee_probe(np);
706708 of_node_put(np);