diff options
author | Kees Cook <keescook@chromium.org> | 2018-06-26 00:23:16 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-28 12:49:46 +0200 |
commit | 8d361fa2c29dcaf258f71e70cd75ff51084c3e5e (patch) | |
tree | 8cf65f56f6382a2563e7bfafcdb47fac13bdc710 /Documentation/devicetree/bindings/connector | |
parent | usb: cdc-wdm: use irqsave() in USB's complete callback (diff) | |
download | linux-8d361fa2c29dcaf258f71e70cd75ff51084c3e5e.tar.xz linux-8d361fa2c29dcaf258f71e70cd75ff51084c3e5e.zip |
usb: typec: tps6598x: Remove VLA usage
In the quest to remove all stack VLA usage from the kernel[1], this
uses the maximum buffer size and adds a sanity check. While 25 bytes
is the size of the largest current things coming through, Heikki
Krogerus pointed out that the actual max in 64 bytes, as per ch 1.3.2
http://www.ti.com/lit/ug/slvuan1a/slvuan1a.pdf
[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/connector')
0 files changed, 0 insertions, 0 deletions