]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: Document the general convention for VLAs in kernel space
authorBen Hutchings <ben@decadent.org.uk>
Wed, 12 Feb 2014 22:14:53 +0000 (22:14 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Feb 2014 22:33:03 +0000 (17:33 -0500)
commit23fba027102dec8128c9c4f92580c88d2e55b5c9
treef8c5ec10761812f6de9f63c274e3aa62d0bec40f
parentfde1b909f443201b64195a0d3d8c7b66209ed09b
ethtool: Document the general convention for VLAs in kernel space

Various ethtool command structures are declared with zero-length array
at the end which are intended to be variable-length in userland
(relying on lack of compiler bounds checking).  However, in the kernel
the structure and array are always allocated and passed to driver
operations separately.  Make that explicit.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h