ATA_GET_STATUS ioctl crashes on AHCI devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux