Skip to content
Snippets Groups Projects
Commit baedb014 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: Ieda6d8f4bb567827fa6c7709e9e729905c6c3882
Signed-off-by: default avatarYuan Lin <yualin@google.com>
parent 12c4634a
Branches
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