OSDN Git Service

rtlwifi: make a couple arrays larger
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Aug 2017 08:05:19 +0000 (11:05 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 24 Aug 2017 09:53:50 +0000 (12:53 +0300)
commitd9ee6015e573176e599693b6d0125ad74b210623
treedd41ed3a11f84bcee31dcdc0569da3f5733172f6
parent14cc696c0a4aac823e41b9c29d04d1936cbf969c
rtlwifi: make a couple arrays larger

This is a static checker fix.  "cal_num" is 10.  We're declaring the
tx_dt[] and rx_td[] arrays as 3 element arrays.  The static checker
complains that we do:

tx_dt[cal] = (vdf_y[1]>>20)-(vdf_y[0]>>20);

"cal" is the iterator and it is in the 0-9 range so it looks like
we could corrupt memory.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c