From 3e493b80e587171ec59ef3e2e1b0797d61d7138f Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Fri, 6 Apr 2001 23:24:19 +0000 Subject: [PATCH] added explicit initialization of devpriv->spinlock --- comedi/drivers/das1800.c | 1 + comedi/drivers/das800.c | 1 + 2 files changed, 2 insertions(+) diff --git a/comedi/drivers/das1800.c b/comedi/drivers/das1800.c index 747e817d..766dc63e 100644 --- a/comedi/drivers/das1800.c +++ b/comedi/drivers/das1800.c @@ -496,6 +496,7 @@ static int das1800_attach(comedi_device *dev, comedi_devconfig *it) /* allocate and initialize dev->private */ if(alloc_private(dev, sizeof(das1800_private)) < 0) return -ENOMEM; + devpriv->spinlock = SPIN_LOCK_UNLOCKED; printk("comedi%d: das1800: io 0x%x", dev->minor, iobase); if(irq) diff --git a/comedi/drivers/das800.c b/comedi/drivers/das800.c index 21f50fbb..d55d7e47 100644 --- a/comedi/drivers/das800.c +++ b/comedi/drivers/das800.c @@ -466,6 +466,7 @@ static int das800_attach(comedi_device *dev, comedi_devconfig *it) /* allocate and initialize dev->private */ if(alloc_private(dev, sizeof(das800_private)) < 0) return -ENOMEM; + devpriv->spinlock = SPIN_LOCK_UNLOCKED; dev->n_subdevices = 3; if(alloc_subdevices(dev) < 0) -- 2.26.2