* kmalloc to kzalloc patches for drivers/mfd
@ 2006-09-18 0:53 Om Narasimhan
2006-09-18 9:43 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Om Narasimhan @ 2006-09-18 0:53 UTC (permalink / raw)
To: linux-kernel, kernel-janitors
Tested by compiling.
Signed off by Om Narasimhan <om.turyx@gmail.com>
drivers/mfd/mcp-core.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/mfd/mcp-core.c b/drivers/mfd/mcp-core.c
index 75f401d..b4ed57e 100644
--- a/drivers/mfd/mcp-core.c
+++ b/drivers/mfd/mcp-core.c
@@ -200,9 +200,8 @@ struct mcp *mcp_host_alloc(struct device
{
struct mcp *mcp;
- mcp = kmalloc(sizeof(struct mcp) + size, GFP_KERNEL);
+ mcp = kzalloc(sizeof(struct mcp) + size, GFP_KERNEL);
if (mcp) {
- memset(mcp, 0, sizeof(struct mcp) + size);
spin_lock_init(&mcp->lock);
mcp->attached_device.parent = parent;
mcp->attached_device.bus = &mcp_bus_type;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: kmalloc to kzalloc patches for drivers/mfd
2006-09-18 0:53 kmalloc to kzalloc patches for drivers/mfd Om Narasimhan
@ 2006-09-18 9:43 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2006-09-18 9:43 UTC (permalink / raw)
To: Om Narasimhan; +Cc: linux-kernel, kernel-janitors
Ar Sul, 2006-09-17 am 17:53 -0700, ysgrifennodd Om Narasimhan:
> Tested by compiling.
>
> Signed off by Om Narasimhan <om.turyx@gmail.com>
>
Acked-by: Alan Cox <alan@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-18 9:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-18 0:53 kmalloc to kzalloc patches for drivers/mfd Om Narasimhan
2006-09-18 9:43 ` Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®