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

Clang warns about exceeded stack frame size

  fs/smb/client/smb2ops.c:2521:1: warning: stack frame size (1336)
  exceeds limit (1024) in 'smb2_query_info_compound'
  [-Wframe-larger-than]

Fix this by allocating a structure that will hold most of the large
variables.

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