diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-12-03 08:53:06 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-12-03 08:53:06 +0000 |
commit | c2cb6a67c46f77de319352e9308df3b6b9de3321 (patch) | |
tree | 82773f5e3322de41fa5cba52cc9c4abbc32d346e /firmware/drivers | |
parent | 08b9e970910a534d9ee947e4d38438db52ccbfa2 (diff) | |
download | rockbox-c2cb6a67c46f77de319352e9308df3b6b9de3321.tar.gz rockbox-c2cb6a67c46f77de319352e9308df3b6b9de3321.zip |
Bug fix: A failed read could return OK.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2899 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/ata.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index f49040a794..0fbc418c2f 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c | |||
@@ -222,8 +222,10 @@ int ata_read_sectors(unsigned long start, | |||
222 | goto retry; | 222 | goto retry; |
223 | } | 223 | } |
224 | 224 | ||
225 | if ( ATA_ALT_STATUS & (STATUS_ERR | STATUS_DF) ) | 225 | if ( ATA_ALT_STATUS & (STATUS_ERR | STATUS_DF) ) { |
226 | ret = -5; | ||
226 | goto retry; | 227 | goto retry; |
228 | } | ||
227 | 229 | ||
228 | /* if destination address is odd, use byte copying, | 230 | /* if destination address is odd, use byte copying, |
229 | otherwise use word copying */ | 231 | otherwise use word copying */ |