Skip to content
Commit 55caa924 authored by Yinglin Luan's avatar Yinglin Luan Committed by David S. Miller
Browse files

rionet: fix NULL pointer dereference in rionet_remove



Function rionet_remove initializes local variable 'ndev' to NULL
and do nothing changes before the call to unregister_netdev(ndev),
this could cause a NULL pointer dereference.

Reported-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarYinglin Luan <synmyth@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7ab24bfd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment