Skip to content

Commit e2e73a0

Browse files
jenswi-linaroAlex Shi
authored andcommitted
optee: fix invalid of_node_put() in optee_driver_init()
The first node supplied to of_find_matching_node() has its reference counter decreased as part of call to that function. In optee_driver_init() after calling of_find_matching_node() it's invalid to call of_node_put() on the supplied node again. So remove the invalid call to of_node_put(). Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
1 parent 33bcec4 commit e2e73a0

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/tee/optee/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,6 @@ static int __init optee_driver_init(void)
589589
return -ENODEV;
590590

591591
np = of_find_matching_node(fw_np, optee_match);
592-
of_node_put(fw_np);
593592
if (!np)
594593
return -ENODEV;
595594

0 commit comments

Comments
 (0)