smb: client: reduce stack usage in smb_send_rqst()
authorPaulo Alcantara <pc@manguebit.com>
Thu, 17 Aug 2023 15:34:12 +0000 (12:34 -0300)
committerSteve French <stfrench@microsoft.com>
Sun, 20 Aug 2023 21:05:50 +0000 (16:05 -0500)
commit933148a47c8b3db569cb92888571a57b8c171f3b
treee6376ef65eb59c644b439a6c978ecdb641cf86bb
parent946ad1b8b18dd91804e2dbfd9a9cefb6a8196bc0
smb: client: reduce stack usage in smb_send_rqst()

Clang warns about exceeded stack frame size

  fs/smb/client/transport.c:420:1: warning: stack frame size (1048)
  exceeds limit (1024) in 'smb_send_rqst' [-Wframe-larger-than]

Fix this by allocating a structure that will hold transform header and
compound requests.

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/transport.c