* ATA_GET_STATUS ioctl crashes on AHCI devices
@ 2007-10-19 8:55 Stanislav Semakin
0 siblings, 0 replies; only message in thread
From: Stanislav Semakin @ 2007-10-19 8:55 UTC (permalink / raw)
To: Jeff Garzik, linux-ide
Hi,
I use 2.6.21 kernel. If I call the ATA_GET_STATUS to the disks connected
to ahci card then my app crashes.
ata_check_status() function does ioread8(ap->ioaddr.status_addr) where
ap->ioaddr.status_addr is 0.
If I change it in the following way everything works:
u8 ata_check_status(struct ata_port *ap)
{
if (ap->ops->check_status)
return ap->ops->check_status(ap);
return ioread8(ap->ioaddr.status_addr);
}
I checked latest 2.6.23.1 and looks like there is the same problem.
BR,
Stanislav
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-19 9:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19 8:55 ATA_GET_STATUS ioctl crashes on AHCI devices Stanislav Semakin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).