Fixed request_region() being called with uninitialized value.
authorDavid Schleef <ds@schleef.org>
Tue, 3 Apr 2001 09:23:38 +0000 (09:23 +0000)
committerDavid Schleef <ds@schleef.org>
Tue, 3 Apr 2001 09:23:38 +0000 (09:23 +0000)
comedi/drivers/rti800.c

index c9d980c87819969bfa1d4f8eb277afc7cb235f42..48277d09797cddff1870a76303557a4f0acf9812 100644 (file)
@@ -295,7 +295,7 @@ static int rti800_attach(comedi_device * dev, comedi_devconfig * it)
                printk("I/O port conflict\n");
                return -EIO;
        }
-       request_region(dev->iobase, RTI800_SIZE, "rti800");
+       request_region(iobase, RTI800_SIZE, "rti800");
        dev->iobase = iobase;
 
 #ifdef DEBUG