On 10/17/19 2:18 AM, Dan Carpenter wrote: > The "rates_len" value needs to be capped so that the memcpy() doesn't > copy beyond the end of the array. > > Fixes: c5c77ba18ea6 ("staging: wilc1000: Add SDIO/SPI 802.11 driver") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > drivers/staging/wilc1000/wilc_hif.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Adham Abozaeid <adham.abozaeid@xxxxxxxxxxxxx> Thanks Dan for the patch.