From 0ea225d12b2299596a004bc6cf10b20295896942 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Mon, 7 Aug 2006 14:09:26 +0000 Subject: [PATCH] Check I/O region was allocated before releasing it. --- comedi/drivers/fl512.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/drivers/fl512.c b/comedi/drivers/fl512.c index 5cca2689..a9555f4a 100644 --- a/comedi/drivers/fl512.c +++ b/comedi/drivers/fl512.c @@ -188,7 +188,7 @@ static int fl512_attach(comedi_device *dev,comedi_devconfig *it) static int fl512_detach(comedi_device *dev) { - release_region(dev->iobase,FL512_SIZE); + if (dev->iobase) release_region(dev->iobase,FL512_SIZE); printk("comedi%d: fl512: dummy i detach\n",dev->minor); return 0; } -- 2.26.2