staging: r8188eu: core: Change the length of an array
PATCH 1/1 staging: r8188eu: core: Change the length of an array
IPX_NODE_LEN == 6, while addr.f1 should only have 4 elements. Replace IPX_NODE_LEN with 4. In the while, remove the excess spaces before the fields of the union.
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Fabio M. De Francesco <[email protected]>
--- drivers/staging/r8188eu/core/rtw_br_ext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/r8188eu/core/rtw_br_ext.c +3 -3
@@ -137,9 +137,9 @@ static inline void __nat25_generate_ipx_network_addr_with_node(unsigned char *ne __be32 *ipxNetAddr, unsigned char *ipxNodeAddr) {union { -unsigned int f0; -unsigned char f1[IPX_NODE_LEN ]; - } addr; +unsigned int f0; +unsigned char f1[4 ]; + } addr;memset (networkAddr,0 ,MAX_NETWORK_ADDR_LEN );
Signature · 1 line
2.32.0
Greg Kroah-Hartman
maintainerQuoted 9 lines · Fabio M. De Francesco
IPX_NODE_LEN== 6, while addr.f1 should only have 4 elements. ReplaceIPX_NODE_LENwith 4. In the while, remove the excess spaces before the fields of the union.Reported-by Dan Carpenter <[email protected]>Signed-off-by Fabio M. De Francesco <[email protected]>--- drivers/staging/r8188eu/core/rtw_br_ext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
What is the commit id that this patch fixes?
thanks,
greg k-h