]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb3: remove VLA usage
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 7 Mar 2018 18:03:33 +0000 (12:03 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 20:55:50 +0000 (15:55 -0500)
commitd7c5c6fdbda0577e8571ec91be221431d2feb366
treebc54fbdc072b45ef9c1af9eeb9a42ee0ed04aac1
parent02e45e59a749147deb08590e0949c1fab492d52e
cxgb3: remove VLA usage

Remove VLA usage and change the 'len' argument to a u8 and use a 256
byte buffer on the stack. Notice that these lengths are limited by the
encoding field in the VPD structure, which is a u8 [1].

[1] https://marc.info/?l=linux-netdev&m=152044354814024&w=2

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb3/t3_hw.c