Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);