Thread (31 messages) 31 messages, 4 authors, 2018-08-21

Re: [01/15] powerpc/powernv: opal_put_chars partial write fix

From: Michael Ellerman <hidden>
Date: 2018-07-24 13:59:52
Also in: lkml

On Mon, 2018-04-30 at 14:55:44 UTC, Nicholas Piggin wrote:
The intention here is to consume and discard the remaining buffer
upon error. This works if there has not been a previous partial write.
If there has been, then total_len is no longer total number of bytes
to copy. total_len is always "bytes left to copy", so it should be
added to written bytes.

This code may not be exercised any more if partial writes will not be
hit, but this is a small bugfix before a larger change.

Reviewed-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Patches 1-9 applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/bd90284cc6c1c9e8e48c8eadd0c795

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help