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

Commit 7c103466 authored by Todd Kjos's avatar Todd Kjos Committed by Martijn Coenen
Browse files

FROMLIST: binder: use node->tmp_refs to ensure node safety

(from https://patchwork.kernel.org/patch/9817795/

)

When obtaining a node via binder_get_node(),
binder_get_node_from_ref() or binder_new_node(),
increment node->tmp_refs to take a
temporary reference on the node to ensure the node
persists while being used.  binder_put_node() must
be called to remove the temporary reference.

Change-Id: I962b39d5cd80b2d7e4786bb87236ede7914e2db7
Signed-off-by: default avatarTodd Kjos <tkjos@google.com>
parent fc0d4f56
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment