ibmvnic: Define vnic_login_client_data name field as unsized array
authorKees Cook <keescook@chromium.org>
Tue, 10 Apr 2018 22:26:43 +0000 (15:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2018 01:46:10 +0000 (21:46 -0400)
commit08ea556e14b56e9a49b19abd8e39f0c9e05582f2
tree23690640fee73510e7d28d6c91c5cc654c25b3fc
parent5d1365940a68dd57b031b6e3c07d7d451cd69daf
ibmvnic: Define vnic_login_client_data name field as unsized array

The "name" field of struct vnic_login_client_data is a char array of
undefined length. This should be written as "char name[]" so the compiler
can make better decisions about the field (for example, not assuming
it's a single character). This was noticed while trying to tighten the
CONFIG_FORTIFY_SOURCE checking.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c