git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[RFKILL]: Fix check for correct rfkill allocation
[sfrench/cifs-2.6.git]
/
net
/
rfkill
/
rfkill.c
diff --git
a/net/rfkill/rfkill.c
b/net/rfkill/rfkill.c
index a973603e388028925b73c1c5b893f3a279bf6c29..f3986d498b4088622084a121fa0bcc73b07f228e 100644
(file)
--- a/
net/rfkill/rfkill.c
+++ b/
net/rfkill/rfkill.c
@@
-296,7
+296,7
@@
struct rfkill *rfkill_allocate(struct device *parent, enum rfkill_type type)
struct device *dev;
rfkill = kzalloc(sizeof(struct rfkill), GFP_KERNEL);
- if (rfkill)
+ if (
!
rfkill)
return NULL;
mutex_init(&rfkill->mutex);