Skip to content
Commit d007da1f authored by Ivo van Doorn's avatar Ivo van Doorn Committed by David S. Miller
Browse files

[RFKILL]: Fix check for correct rfkill allocation



coverity has spotted a bug in rfkill.c (bug id #1627),
in rfkill_allocate() NULL was returns if the kzalloc() works,
and deref the NULL pointer if it fails,

Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c34b19fb
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