commit | bfee15f3c9cc63e525ac4ff1e81311550e56861f | [log] [tgz] |
---|---|---|
author | Suren Baghdasaryan <surenb@google.com> | Fri Oct 12 11:28:33 2018 -0700 |
committer | Suren Baghdasaryan <surenb@google.com> | Fri Oct 12 11:28:33 2018 -0700 |
tree | c6b6a9024126b6f501fbc7612314ce57de8928e8 | |
parent | f7618580d3a1a61ea7639636df7b4789cada19e1 [diff] |
lmkd: Fix an invalid access to a pointer after it's freed pid_remove() frees a structure representing registered process and the pointer can't be used anymore. This change fixes an instance when pointer was used after it was freed. pid_remove() is moved to the end of the function and comments are added to prevent similar situation in the future. Bug: 117625315 Change-Id: I6a922952a31232497b3f9caf87d5a21bd402db94 Signed-off-by: Suren Baghdasaryan <surenb@google.com>