diff options
author | Paulo Alcantara <[email protected]> | 2023-08-17 12:34:10 -0300 |
---|---|---|
committer | Steve French <[email protected]> | 2023-08-20 16:05:50 -0500 |
commit | 69a4e06c0e7bceeba95104180110841d232e94e4 (patch) | |
tree | 5d2cb8dd17271b36303b707d52a45aebc6320eb0 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | a18280e7fdea1f2f0736c45f9fee27eccd3998ae (diff) |
smb: client: reduce stack usage in cifs_try_adding_channels()
Clang warns about exceeded stack frame size
fs/smb/client/sess.c:160:5: warning: stack frame size (1368) exceeds
limit (1024) in 'cifs_try_adding_channels' [-Wframe-larger-than]
It turns out that cifs_ses_add_channel() got inlined into
cifs_try_adding_channels() which had a stack-allocated variable @ctx
of 624 bytes in size. Fix this by making it heap-allocated.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Paulo Alcantara (SUSE) <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions