summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2025-02-21 11:57:25 +0300
committerJon Mason <jdmason@kudzu.us>2025-03-18 20:34:59 +0300
commitaff12700b8dd7422bfe2277696e192af4df9de8f (patch)
tree6ef002ef161ccba98b62f3561995186768bebe5d /net/lapb/lapb_iface.c
parentfd5625fc86922f36bedee5846fefd647b7e72751 (diff)
downloadlinux-aff12700b8dd7422bfe2277696e192af4df9de8f.tar.xz
ntb: reduce stack usage in idt_scan_mws
idt_scan_mws() puts a large fixed-size array on the stack and copies it into a smaller dynamically allocated array at the end. On 32-bit targets, the fixed size can easily exceed the warning limit for possible stack overflow: drivers/ntb/hw/idt/ntb_hw_idt.c:1041:27: error: stack frame size (1032) exceeds limit (1024) in 'idt_scan_mws' [-Werror,-Wframe-larger-than] Change it to instead just always use dynamic allocation for the array from the start. It's too big for the stack, but not actually all that much for a permanent allocation. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/all/202205111109.PiKTruEj-lkp@intel.com/ Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions