1
0
Fork 0
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:
Björn Stenberg 2002-12-03 08:53:06 +00:00
parent 08b9e97091
commit c2cb6a67c4

View file

@ -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 */