From: David Schleef Date: Wed, 17 Jan 2001 18:01:30 +0000 (+0000) Subject: clear struct after malloc X-Git-Tag: r0_7_56~62 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=56b7dcf4ce5fb95e0289e7287a28bb01248e4e9e;p=comedi.git clear struct after malloc --- diff --git a/comedi/rt.c b/comedi/rt.c index fcca1933..d8b0688f 100644 --- a/comedi/rt.c +++ b/comedi/rt.c @@ -83,6 +83,7 @@ int comedi_request_irq(unsigned irq,void (*handler)(int, void *,struct pt_regs * it=kmalloc(sizeof(*it),GFP_KERNEL); if(!it) return -ENOMEM; + memset(it,0,sizeof(*it)); it->handler=handler; it->irq=irq;