diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-07-28 14:27:59 -0700 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-17 15:00:57 +0900 |
| commit | 6eac877e0ea53b82fe726ba80bb1a349bd0b592b (patch) | |
| tree | 3ddeda319f4fbe95bd36d92587936b72560986a8 /scripts/stackusage | |
| parent | 16a7f7c2ecf3c893b65f0fb78fa7a7171ae0ba9e (diff) | |
| download | linux-6eac877e0ea53b82fe726ba80bb1a349bd0b592b.tar.gz linux-6eac877e0ea53b82fe726ba80bb1a349bd0b592b.zip | |
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 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
