Re: [PATCH] rfkill: Fix check for correct rfkill allocation

2007-05-19 Thread David Miller
From: Ivo van Doorn <[EMAIL PROTECTED]> Date: Sat, 19 May 2007 14:08:43 +0200 > 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 <[EMAIL PROTECTED]> I

[PATCH] rfkill: Fix check for correct rfkill allocation

2007-05-19 Thread Ivo van Doorn
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 <[EMAIL PROTECTED]> --- diff --git a/net/rfkill/rfkill.c b/net/rfkill/rfkill.c index a973603..f3986d4 100644 -