]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: netconsole: track explicitly if msgbody was written to buffer
authorBreno Leitao <leitao@debian.org>
Thu, 17 Oct 2024 09:50:21 +0000 (02:50 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 22 Oct 2024 13:44:25 +0000 (15:44 +0200)
commitb8dee8ed13b83b701b715dac993582d57c76e31a
tree158a917cc36f1189ac35f7b5e6abf9efd70c53ab
parent606994ad2695ca3ffcab3494d7782c45d964c6f7
net: netconsole: track explicitly if msgbody was written to buffer

The current check to determine if the message body was fully sent is
difficult to follow. To improve clarity, introduce a variable that
explicitly tracks whether the message body (msgbody) has been completely
sent, indicating when it's time to begin sending userdata.

Additionally, add comments to make the code more understandable for
others who may work with it.

Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/netconsole.c