Module: xenomai-abe
Branch: analogy
Commit: 0c7e2c706978367b906008392983c521370e752d
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=0c7e2c706978367b906008392983c521370e752d

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Tue Jan 12 23:00:00 2010 +0100

analogy: [NI mite] initialize the mite structures after their allocations

---

 ksrc/drivers/analogy/national_instruments/mite.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ksrc/drivers/analogy/national_instruments/mite.c 
b/ksrc/drivers/analogy/national_instruments/mite.c
index bec4a3c..4245b21 100644
--- a/ksrc/drivers/analogy/national_instruments/mite.c
+++ b/ksrc/drivers/analogy/national_instruments/mite.c
@@ -68,6 +68,8 @@ static int mite_probe(struct pci_dev *dev, const struct 
pci_device_id *id)
        if(mite == NULL)
                return -ENOMEM;
 
+       memset(mite, 0, sizeof(struct mite_struct));
+
        a4l_lock_init(&mite->lock);
        mite->pcidev = dev;
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to