ATA_GET_STATUS ioctl crashes on AHCI devices
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