Skip to content
Snippets Groups Projects
Commit bb933e91 authored by Wish Wu's avatar Wish Wu Committed by Yuan Lin
Browse files

msm: null pointer dereferencing


Prevent unintended kernel NULL pointer dereferencing.

Orignal code:
  hlist_del_rcu(&event->hlist_entry);

Fix: Adding pointer check:
  if(!hlist_unhashed(&p_event->hlist_entry))
    hlist_del_rcu(&p_event->hlist_entry);

Bug: 25364034
Change-Id: I5e229e9cf3f4e9f4e96527a5a9f0d4c46117ddc4
Signed-off-by: default avatarYuan Lin <yualin@google.com>
parent e1be8821
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment