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

Clang warns about exceeded stack frame size

  fs/smb/client/smb2ops.c:2973:12: warning: stack frame size (1336)
  exceeds limit (1024) in 'smb2_query_reparse_point'
  [-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