diff options
| author | Paulo Alcantara <pc@manguebit.org> | 2026-10-12 01:52:46 -0300 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-10-13 00:52:25 -0300 |
| commit | f13208f26c052d06a10c53eda4c78c930f2b9c47 (patch) | |
| tree | 813f270beb6af368a35b2122dfa01c96618d20a1 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | b012ffcd45b0c5bb9eeb57ec1e7e2a71d3f36e06 (diff) | |
| download | linux-f13208f26c052d06a10c53eda4c78c930f2b9c47.tar.gz linux-f13208f26c052d06a10c53eda4c78c930f2b9c47.zip | |
smb: client: allocate struct sess_data on the stack
CIFS_SessSetup() kzalloc()s struct sess_data only to run a synchronous
state machine and free it before returning; the object never escapes the
function. At 96 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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
