diff options
author | Kees Cook <keescook@chromium.org> | 2018-09-13 14:23:56 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-13 16:53:24 -0700 |
commit | ee4fccbee7d397c4d937e20d8c76212ffc23a7e3 (patch) | |
tree | ed87fd2701be59b42b3f8676b22674eed0ff08fc /drivers/net/vsockmon.c | |
parent | f91845da9fdabd920543e0fb4feb970181e33a0f (diff) | |
download | linux-stable-ee4fccbee7d397c4d937e20d8c76212ffc23a7e3.tar.gz linux-stable-ee4fccbee7d397c4d937e20d8c76212ffc23a7e3.tar.bz2 linux-stable-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" <davem@davemloft.net>
Cc: Christian Lamparter <chunkeey@gmail.com>
Cc: Ivan Mikhaylov <ivan@de.ibm.com>
Cc: netdev@vger.kernel.org
Co-developed-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vsockmon.c')
0 files changed, 0 insertions, 0 deletions