commit | 6e201c857b68ea994c9ac85718eb3d50dcf40d92 | [log] [tgz] |
---|---|---|
author | Ben Hutchings <ben@decadent.org.uk> | Wed Feb 12 22:14:53 2014 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Feb 12 17:33:03 2014 -0500 |
tree | f8c5ec10761812f6de9f63c274e3aa62d0bec40f | |
parent | f432c095f78cd77df049bd0a8322e91ed6d3c59a [diff] |
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>