diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2017-12-01 14:50:23 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-12-18 17:58:32 -0600 |
commit | 8e88ab0e66a201a1d786e7e95c98314bf4e806e7 (patch) | |
tree | 2134291df344bdfa2d9a15d1884516942c39e8ae /hdata/test | |
parent | b9774c47eecd0c90e503919432ec1e4a86355398 (diff) | |
download | skiboot-8e88ab0e66a201a1d786e7e95c98314bf4e806e7.zip skiboot-8e88ab0e66a201a1d786e7e95c98314bf4e806e7.tar.gz skiboot-8e88ab0e66a201a1d786e7e95c98314bf4e806e7.tar.bz2 |
pflash: Respect write(2) return values
The write(2) system call returns the number of bytes written, this is
important since it is entitled to write less than what we requested.
Currently we ignore the return value and assume it wrote everything we
requested. While in practice this is likely to always be the case, it
isn't actually correct.
This patch addresses this.
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata/test')
0 files changed, 0 insertions, 0 deletions