diff options
| author | Paulo Alcantara <pc@manguebit.org> | 2026-10-12 01:53:14 -0300 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-10-13 00:52:25 -0300 |
| commit | cafbf020e437365beaeacc682fecd50450dff669 (patch) | |
| tree | 85ae525646158f36ea71fa55e0bca637b33f2653 /scripts | |
| parent | f13208f26c052d06a10c53eda4c78c930f2b9c47 (diff) | |
| download | linux-cafbf020e437365beaeacc682fecd50450dff669.tar.gz linux-cafbf020e437365beaeacc682fecd50450dff669.zip | |
smb: client: allocate struct SMB2_sess_data on the stack
SMB2_sess_setup() kzalloc()s struct SMB2_sess_data only to run a
synchronous state machine and free it before returning; the object never
escapes the function. At 88 bytes it fits comfortably on the stack even
under CONFIG_FRAME_WARN=1024, so drop the allocation and its failure path.
memzero_explicit() preserves the kfree_sensitive() scrubbing.
Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Reviewed-by: David Howells <dhowells@redhat.com>
Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Cc: Shyam Prasad N <sprasad@microsoft.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Bharath SM <bharathsm@microsoft.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
