Re: [PATCH v2] cxgb3: remove VLA usage

2018-03-07 Thread David Miller
From: "Gustavo A. R. Silva" Date: Wed, 7 Mar 2018 12:03:33 -0600 > 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=

[PATCH v2] cxgb3: remove VLA usage

2018-03-07 Thread Gustavo A. R. Silva
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 --- C