]> git.baikalelectronics.ru Git - kernel.git/commit
[RFKILL]: Fix check for correct rfkill allocation
authorIvo van Doorn <IvDoorn@gmail.com>
Sat, 19 May 2007 19:24:39 +0000 (12:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 May 2007 19:24:39 +0000 (12:24 -0700)
commit2c2f22d889682676231684f1a05f5a068651e39d
treefa96a04b86164d8256e1c4fb533236148fcb0c4e
parent431e5bb4396d8090d154725acef2c171ae5a166f
[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: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rfkill/rfkill.c