diff options
Diffstat (limited to 'firmware/drivers/ata.c')
-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 */ |