summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2026-09-24 21:11:17 -0700
committerCarlos Maiolino <cem@kernel.org>2026-10-06 09:37:36 +0200
commit6b8d60784b61a17bd591cb4c6e8aa9ed29c24f5c (patch)
tree181ab219a2e6f403e6814b981f7f0cc3b510dd8c /tools/perf/scripts/python
parent436ae68743a6974021fefa21fd3093d9bf8e66e4 (diff)
xfs: fix xchk_stats_estimate_bufsize to allow for the trailing null
LOLLM complains that xchk_stats_estimate_bufsize underestimates the buffer size by 1 byte because scnprintf wants to store a null byte after the newline in each line. Each call to scnprintf overwrites the null left by the previous call, but we still need the null byte for the last line in the file. Cc: stable@vger.kernel.org # v6.6 Fixes: d7a74cad8f4513 ("xfs: track usage statistics of online fsck") Signed-off-by: Darrick J. Wong <djwong@kernel.org> Assisted-by: LOLLM # finding obvious bugs Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions