* [KJ] [PATCH]vfc_dev.c-kzalloc
@ 2007-04-16 6:05 vignesh.babu
2007-04-16 21:25 ` [KJ][PATCH]vfc_dev.c-kzalloc Antonino A. Daplas
0 siblings, 1 reply; 2+ messages in thread
From: vignesh.babu @ 2007-04-16 6:05 UTC (permalink / raw)
To: adaplas; +Cc: kernel-janitors, linux-fbdev-devel
[-- Attachment #1.1: Type: text/plain, Size: 885 bytes --]
Replacing kmalloc/memset combination with kzalloc.
Signed-off-by: vignesh babu <vignesh.babu@wipro.com>
---
diff --git a/drivers/sbus/char/vfc_dev.c b/drivers/sbus/char/vfc_dev.c
index 8bfb67c..c3135e2 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
--
Regards,
Vignesh Babu BM
_____________________________________________________________
"Why is it that every time I'm with you, makes me believe in magic?"
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 3173 bytes --]
[-- Attachment #2: Type: text/plain, Size: 192 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [KJ][PATCH]vfc_dev.c-kzalloc
2007-04-16 6:05 [KJ] [PATCH]vfc_dev.c-kzalloc vignesh.babu
@ 2007-04-16 21:25 ` Antonino A. Daplas
0 siblings, 0 replies; 2+ messages in thread
From: Antonino A. Daplas @ 2007-04-16 21:25 UTC (permalink / raw)
To: vignesh.babu; +Cc: kernel-janitors, linux-fbdev-devel
On Mon, 2007-04-16 at 11:35 +0530, vignesh.babu@wipro.com wrote:
> Replacing kmalloc/memset combination with kzalloc.
Wrong subsystem, it's not a framebuffer but a frame grabber, and it's a
Sparc only device. Maintainers: Ultrasparc (David Miller), Sparc
(William L. Irvin)
Tony
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-16 21:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-16 6:05 [KJ] [PATCH]vfc_dev.c-kzalloc vignesh.babu
2007-04-16 21:25 ` [KJ][PATCH]vfc_dev.c-kzalloc Antonino A. Daplas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).