Skip to contentSkip to conversation

parport_pc.c PnP BIOS sanity check

PATCH New Thomas Hood 1 participant 1 message Aug 8, 2001 Parallel port

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parport_pc.c PnP BIOS sanity check

The following would seem to be required to protect against the case in which PnP BIOS reports an IRQ of 0 for a
parport with disabled IRQ. // Thomas jdthood_AT_yahoo.co.uk

drivers/parport/parport_pc.c Mon Jul 30 12:32:16 2001 renamed from drivers/parport/parport_pc.c Mon Jul 30 01:18:34 2001 +2 -1
@@ -2797,7 +2797,8 @@
        irq=dev->irq_resource[0].start;
        dma=dev->dma_resource[0].start;
 
-       if(dma==0) dma=-1;
+       if (dma==0) dma=PARPORT_DMA_NONE;
+       if (irq==0) irq=PARPORT_IRQ_NONE;
 
        printk(KERN_INFO "PnPBIOS: Parport found %s %s at io=%04x,%04x irq=%d dma=%d\n",
                dev->name,dev->slot_name,io,iohi,irq,dma);