From c4199dfb4d72c224549936158f196adeb0013c7d Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 18 Sep 2001 20:54:39 +0000 Subject: [PATCH] Fixed a segfault in nidio_detach() when configure fails because it can't find board --- comedi/drivers/ni_pcidio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comedi/drivers/ni_pcidio.c b/comedi/drivers/ni_pcidio.c index bb6620c2..603d970c 100644 --- a/comedi/drivers/ni_pcidio.c +++ b/comedi/drivers/ni_pcidio.c @@ -499,7 +499,7 @@ static int nidio_detach(comedi_device *dev) { int i; - if(!this_board->is_diodaq){ + if(this_board && !this_board->is_diodaq){ for(i=0;in_8255;i++){ subdev_8255_cleanup(dev,dev->subdevices+i); } -- 2.26.2