commit | 518955f8eec5ccde9cb1d4ea3a2e633fa556dc39 | [log] [tgz] |
---|---|---|
author | Kevin O'Connor <kevin@koconnor.net> | Tue Dec 17 17:57:48 2013 -0500 |
committer | Kevin O'Connor <kevin@koconnor.net> | Fri Dec 27 12:40:25 2013 -0500 |
tree | 90ec32d1aafd98c0dd8ca983d59820c022351913 | |
parent | 743c1575390188fd628ecd0333bb679e8ecc0bec [diff] |
Clear the total block transfer count on error. The total number of blocks transferred is part of the return status of the BIOS API. This is normally the total number of blocks requested. However, in an error it is possible for this count to be less. Add a global check to ensure that on an error event the block count is updated - if it hasn't been updated, assume that no blocks have been transferred successfully (the common case). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>