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

msm: null pointer dereferencing


Prevent unintended kernel NULL pointer dereferencing.

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: Ib13a7400d4a36a4b08b0afc9b7d69c6027e741b6
Signed-off-by: default avatarYuan Lin <yualin@google.com>
parent 4b7e9ba3
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