From: vignesh babu Date: Tue, 17 Apr 2007 19:42:09 +0000 (-0700) Subject: [SBUS] vfc_dev.c: kzalloc X-Git-Tag: v2.6.21~34^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2e6679a0aa352e6b74f6385c49cd4dca3dc7201f;p=linux-2.6-omap-h63xx.git [SBUS] vfc_dev.c: kzalloc Replacing kmalloc/memset combination with kzalloc. Signed-off-by: vignesh babu Signed-off-by: David S. Miller --- diff --git a/drivers/sbus/char/vfc_dev.c b/drivers/sbus/char/vfc_dev.c index 8bfb67ccdcd..c3135e2fbd5 100644 --- 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 = kmalloc(inout.len, GFP_KERNEL); + buffer = kzalloc(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