From: Stanislav Semakin <Stanislav.Semakin@blancco.com>
To: Jeff Garzik <jgarzik@pobox.com>, linux-ide@vger.kernel.org
Subject: ATA_GET_STATUS ioctl crashes on AHCI devices
Date: Fri, 19 Oct 2007 11:55:22 +0300 [thread overview]
Message-ID: <1192784122.7832.88.camel@blanccoss> (raw)
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
reply other threads:[~2007-10-19 9:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1192784122.7832.88.camel@blanccoss \
--to=stanislav.semakin@blancco.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@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;
as well as URLs for NNTP newsgroup(s).