fix read potentially returning corrupt data when the hardware fails
parent
ce825e1a42
commit
a1ca403e41
|
@ -914,8 +914,9 @@ retry:
|
|||
total += br;
|
||||
count -= br;
|
||||
b = (u8*)b + br;
|
||||
continue;
|
||||
}
|
||||
if (br == to_read)
|
||||
continue;
|
||||
/* If the syscall was interrupted, try again. */
|
||||
if (br == (s64)-1 && errno == EINTR)
|
||||
goto retry;
|
||||
|
|
Loading…
Reference in New Issue