]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfcd924b4873bccef681cf3d77892004f80334a41
tree23690640fee73510e7d28d6c91c5cc654c25b3fc
parent1a9c75d4e91fcb8a8ff2ecee763f6f95f604764c
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