From: Thomas Hood <jdthoodREMOVETHIS@yahoo.co.uk>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] parport_pc.c PnP BIOS sanity check
Date: Wed, 08 Aug 2001 11:15:15 -0400 [thread overview]
Message-ID: <3B715783.F3EDEC71@yahoo.co.uk> (raw)
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
--- linux-2.4.7-ac2/drivers/parport/parport_pc.c Mon Jul 30 01:18:34 2001
+++ linux-2.4.7-ac2-jdth1/drivers/parport/parport_pc.c Mon Jul 30 12:32:16 2001
@@ -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);
next reply other threads:[~2001-08-08 15:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-08 15:15 Thomas Hood [this message]
[not found] <no.id>
2001-08-08 15:20 ` [PATCH] parport_pc.c PnP BIOS sanity check Alan Cox
2001-08-08 16:13 ` Richard B. Johnson
2001-08-08 21:58 ` H. Peter Anvin
2001-08-08 22:12 ` Russell King
2001-08-10 9:18 ` Eric W. Biederman
-- strict thread matches above, loose matches on Subject: below --
2001-08-13 21:46 Thomas Hood
2001-09-21 6:00 Thomas Hood
2001-09-21 6:11 ` Ignacio Vazquez-Abrams
2001-09-21 12:07 ` Alan Cox
2001-09-21 18:45 ` Thomas Hood
2001-09-22 0:08 ` Philip Blundell
2001-09-21 18:09 ` Gunther Mayer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B715783.F3EDEC71@yahoo.co.uk \
--to=jdthoodremovethis@yahoo.co.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox