Re: [PATCH v2 2/2] staging: rtl8192e: Change state information from u16 to u8

2021-03-23 Thread Dan Carpenter
Reviewed-by: Dan Carpenter regards, dan carpenter

[PATCH v2 2/2] staging: rtl8192e: Change state information from u16 to u8

2021-03-23 Thread Atul Gopinathan
The "u16 CcxRmState[2];" array field in struct "rtllib_network" has 4 bytes in total while the operations performed on this array through-out the code base are only 2 bytes. The "CcxRmState" field is fed only 2 bytes of data using memcpy(): (In rtllib_rx.c:1972) memcpy(network->CcxRmState