summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-07-28 14:27:59 -0700
committerNamjae Jeon <linkinjeon@kernel.org>2026-08-17 15:00:57 +0900
commit6eac877e0ea53b82fe726ba80bb1a349bd0b592b (patch)
tree3ddeda319f4fbe95bd36d92587936b72560986a8 /tools/perf/scripts/python/stackcollapse.py
parent16a7f7c2ecf3c893b65f0fb78fa7a7171ae0ba9e (diff)
ksmbd: remove extra byte from ipc_msg_alloc() size calculations
Three ipc_msg_alloc() calls in transport_ipc.c allocate sizeof(struct) + payload_len + 1, but the extra byte is unnecessary. The payload data is binary and copied with memcpy() to the exact size; no null terminator is needed. This was present in the original commit that introduced the file, where the structs already used [0] zero-length arrays, so the +1 was never correct. Assisted-by: Opencode:Big-Pickle Signed-off-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions