aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorWill Deacon <[email protected]>2023-09-06 18:15:37 +0000
committerWill Deacon <[email protected]>2023-09-06 18:22:54 +0000
commitab41a97474c00ceab1b8f44ac78a51079130466a (patch)
treeb14e2a62d12fe8c4d7d5a9557c3a6095ea828857 /tools/perf/scripts/python/net_dropmonitor.py
parentperf: CXL: fix mismatched number of counters mask (diff)
downloadkernel-ab41a97474c00ceab1b8f44ac78a51079130466a.tar.gz
kernel-ab41a97474c00ceab1b8f44ac78a51079130466a.zip
arm64/sysreg: Fix broken strncpy() -> strscpy() conversion
Mostafa reports that commit d232606773a0 ("arm64/sysreg: refactor deprecated strncpy") breaks our early command-line parsing because the original code is working on space-delimited substrings rather than NUL-terminated strings. Rather than simply reverting the broken conversion patch, replace the strscpy() with a simple memcpy() with an explicit NUL-termination of the result. Reported-by: Mostafa Saleh <[email protected]> Tested-by: Mostafa Saleh <[email protected]> Fixes: d232606773a0 ("arm64/sysreg: refactor deprecated strncpy") Signed-off-by: Justin Stitt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions