aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/loopback.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2018-09-13 21:23:56 +0000
committerDavid S. Miller <[email protected]>2018-09-13 23:53:24 +0000
commitee4fccbee7d397c4d937e20d8c76212ffc23a7e3 (patch)
treeed87fd2701be59b42b3f8676b22674eed0ff08fc /drivers/net/loopback.c
parentpktgen: Fix fall-through annotation (diff)
downloadkernel-ee4fccbee7d397c4d937e20d8c76212ffc23a7e3.tar.gz
kernel-ee4fccbee7d397c4d937e20d8c76212ffc23a7e3.zip
net/ibm/emac: Remove VLA usage
In the quest to remove all stack VLA usage from the kernel[1], this removes the VLA used for the emac xaht registers size. Since the size of registers can only ever be 4 or 8, as detected in emac_init_config(), the max can be hardcoded and a runtime test added for robustness. [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com Cc: "David S. Miller" <[email protected]> Cc: Christian Lamparter <[email protected]> Cc: Ivan Mikhaylov <[email protected]> Cc: [email protected] Co-developed-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Kees Cook <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/loopback.c')
0 files changed, 0 insertions, 0 deletions