summaryrefslogtreecommitdiff
path: root/net/ncsi
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-04-29 16:55:06 -0700
committerPaolo Abeni <pabeni@redhat.com>2022-05-02 15:14:20 +0200
commitc92bf26ccebc8501863b38c4a4f65b8fef28ce5e (patch)
tree3ae147a26bf9768b022f49582df91ba2ee9cc43d /net/ncsi
parentd7ab15ab34a491b3837595b629e79323a1922fc8 (diff)
rtnl: allocate more attr tables on the heap
Commit a293974590cf ("rtnetlink: avoid frame size warning in rtnl_newlink()") moved to allocating the largest attribute array of rtnl_newlink() on the heap. Kalle reports the stack has grown above 1k again: net/core/rtnetlink.c:3557:1: error: the frame size of 1104 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] Move more attrs to the heap, wrap them in a struct. Don't bother with linkinfo, it's referenced a lot and we take its size so it's awkward to move, plus it's small (6 elements). Reported-by: Kalle Valo <kvalo@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Tested-by: Kalle Valo <kvalo@kernel.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'net/ncsi')
0 files changed, 0 insertions, 0 deletions