git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] trivial __user cleanup (video1394)
[pandora-kernel.git]
/
drivers
/
input
/
joystick
/
sidewinder.c
diff --git
a/drivers/input/joystick/sidewinder.c
b/drivers/input/joystick/sidewinder.c
index
47144a7
..
9e03537
100644
(file)
--- a/
drivers/input/joystick/sidewinder.c
+++ b/
drivers/input/joystick/sidewinder.c
@@
-590,7
+590,7
@@
static int sw_connect(struct gameport *gameport, struct gameport_driver *drv)
comment[0] = 0;
- sw = k
calloc(1,
sizeof(struct sw), GFP_KERNEL);
+ sw = k
zalloc(
sizeof(struct sw), GFP_KERNEL);
buf = kmalloc(SW_LENGTH, GFP_KERNEL);
idbuf = kmalloc(SW_LENGTH, GFP_KERNEL);
if (!sw || !buf || !idbuf) {