projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d932cb7
)
Input: keyboard - change to use kzalloc
author
Dmitry Torokhov
<dtor@insightbb.com>
Sat, 5 Aug 2006 02:51:51 +0000
(22:51 -0400)
committer
Dmitry Torokhov
<dtor@insightbb.com>
Sat, 5 Aug 2006 02:51:51 +0000
(22:51 -0400)
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/char/keyboard.c
patch
|
blob
|
history
diff --git
a/drivers/char/keyboard.c
b/drivers/char/keyboard.c
index 30a745428a09d775a51a71bdfee498b92c5a1416..3e90aac3751032b74178a85fd31f5778f3bb7d29 100644
(file)
--- a/
drivers/char/keyboard.c
+++ b/
drivers/char/keyboard.c
@@
-1297,9
+1297,9
@@
static struct input_handle *kbd_connect(struct input_handler *handler,
if (i == BTN_MISC && !test_bit(EV_SND, dev->evbit))
return NULL;
- if (!(handle = kmalloc(sizeof(struct input_handle), GFP_KERNEL)))
+ handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL);
+ if (!handle)
return NULL;
- memset(handle, 0, sizeof(struct input_handle));
handle->dev = dev;
handle->handler = handler;