diff options
author | Alan <alan@lxorguk.ukuu.org.uk> | 2007-01-25 16:09:05 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-01-26 00:27:16 +0100 |
commit | 61dd08c6c8d2b4ede530e43c01fa72f789ef65b1 (patch) | |
tree | ed50d46e0b8f089cf97aba54aa3e38ed3c1af57b /drivers/ata/libata-sff.c | |
parent | libata: implement ATA_FLAG_IGN_SIMPLEX and use it in sata_uli (diff) | |
download | linux-61dd08c6c8d2b4ede530e43c01fa72f789ef65b1.tar.xz linux-61dd08c6c8d2b4ede530e43c01fa72f789ef65b1.zip |
libata-sff: Don't call bmdma_stop on non DMA capable controllers
Fixes bogus accesses to ports 0-15 with a non DMA capable controller.
This I think should go in for 2.6.20
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r-- | drivers/ata/libata-sff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 114fa81deb83..942aeba2940a 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c @@ -827,7 +827,8 @@ void ata_bmdma_error_handler(struct ata_port *ap) */ void ata_bmdma_post_internal_cmd(struct ata_queued_cmd *qc) { - ata_bmdma_stop(qc); + if (qc->ap->ioaddr.bmdma_addr) + ata_bmdma_stop(qc); } #ifdef CONFIG_PCI |