forked from len0rd/rockbox
Bug fix: A failed read could return OK.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2899 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
08b9e97091
commit
c2cb6a67c4
1 changed files with 3 additions and 1 deletions
|
@ -222,8 +222,10 @@ int ata_read_sectors(unsigned long start,
|
|||
goto retry;
|
||||
}
|
||||
|
||||
if ( ATA_ALT_STATUS & (STATUS_ERR | STATUS_DF) )
|
||||
if ( ATA_ALT_STATUS & (STATUS_ERR | STATUS_DF) ) {
|
||||
ret = -5;
|
||||
goto retry;
|
||||
}
|
||||
|
||||
/* if destination address is odd, use byte copying,
|
||||
otherwise use word copying */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue