projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edd42cd
)
clear struct after malloc
author
David Schleef
<ds@schleef.org>
Wed, 17 Jan 2001 18:01:30 +0000
(18:01 +0000)
committer
David Schleef
<ds@schleef.org>
Wed, 17 Jan 2001 18:01:30 +0000
(18:01 +0000)
comedi/rt.c
patch
|
blob
|
history
diff --git
a/comedi/rt.c
b/comedi/rt.c
index fcca1933f724c286591e114a555749fe6205bb06..d8b0688fe09cb036da8a1c3c19a0f6c4eef443d9 100644
(file)
--- 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;