projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f85102
)
[SBUS] vfc_dev.c: kzalloc
author
vignesh babu
<vignesh.babu@wipro.com>
Tue, 17 Apr 2007 19:42:09 +0000
(12:42 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Sat, 21 Apr 2007 22:29:17 +0000
(15:29 -0700)
Replacing kmalloc/memset combination with kzalloc.
Signed-off-by: vignesh babu <vignesh.babu@wipro.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/sbus/char/vfc_dev.c
patch
|
blob
|
history
diff --git
a/drivers/sbus/char/vfc_dev.c
b/drivers/sbus/char/vfc_dev.c
index
8bfb67c
..
c3135e2
100644
(file)
--- a/
drivers/sbus/char/vfc_dev.c
+++ b/
drivers/sbus/char/vfc_dev.c
@@
-259,11
+259,10
@@
static int vfc_debug(struct vfc_dev *dev, int cmd, void __user *argp)
if (copy_from_user(&inout, argp, sizeof(inout)))
return -EFAULT;
- buffer = k
m
alloc(inout.len, GFP_KERNEL);
+ buffer = k
z
alloc(inout.len, GFP_KERNEL);
if (buffer == NULL)
return -ENOMEM;
- memset(buffer,0,inout.len);
vfc_lock_device(dev);
inout.ret=
vfc_i2c_recvbuf(dev,inout.addr & 0xff