]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
seq_buf: fix a misleading comment
authorJonathan Corbet <corbet@lwn.net>
Fri, 20 Oct 2023 20:38:49 +0000 (14:38 -0600)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Fri, 20 Oct 2023 20:51:06 +0000 (16:51 -0400)
commit845e31e1101fc8533be52aff42d8f1ff48636024
tree64d668e15120bb15e9351bd88002ded252220870
parentd0ed46b60396cfa7e0056f55e1ce0b43c7db57b6
seq_buf: fix a misleading comment

The comment for seq_buf_has_overflowed() says that an overflow condition is
marked by len == size, but that's not what the code is testing.  Make the
comment match reality.

Link: https://lkml.kernel.org/r/87pm19kp0m.fsf@meer.lwn.net
Fixes: 8cd709ae7658a ("tracing: Have seq_buf use full buffer")
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/linux/seq_buf.h