From 56b7dcf4ce5fb95e0289e7287a28bb01248e4e9e Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 17 Jan 2001 18:01:30 +0000 Subject: [PATCH] clear struct after malloc --- comedi/rt.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.26.2