[Skiboot] [PATCH] pflash: Respect write(2) return values
Stewart Smith
stewart at linux.vnet.ibm.com
Tue Dec 19 11:29:35 AEDT 2017
Cyril Bur <cyril.bur at au1.ibm.com> writes:
> 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 at au1.ibm.com>
> ---
> external/pflash/pflash.c | 13 +++++++++----
> 1 file changed, 9 insertions(+), 4 deletions(-)
Merged to master as of 8e88ab0e66a201a1d786e7e95c98314bf4e806e7
--
Stewart Smith
OPAL Architect, IBM.
More information about the Skiboot
mailing list