commit | 010632748657423d17f9fd4c2908e5bb92aa0dbb | [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 | c53a0e9158bbfb2a4ffa1a15f15bb7450d3fb8d9 [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>