Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers:lmk: Fix double delete issue
someone may change a process's oom_score_adj by proc fs, even though the process has exited. In that case, the task was deleted from the rb tree already, and the redundant deleting would trigger rb_erase panic finally. In this patch, we make sure to clear the node after deteting and check its empty status before rb_erase. Signed-off-by: Hong-Mei Li <[email protected]> Reviewed-on: http://gerrit.mot.com/725306 SLTApproved: Slta Waiver <[email protected]> SME-Granted: SME Approvals Granted Tested-by: Jira Key <[email protected]> Reviewed-by: Sheng-Zhe Zhao <[email protected]> Submit-Approved: Jira Key <[email protected]> Signed-off-by: Pranav Vashi <[email protected]>
- Loading branch information