[ Off by one still. -dan]

Hi Larry,

FYI, there are new smatch warnings show up in

tree:   
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next.git master
head:   4e3b3bcd81776527fa6f11624d68849de8c8802e
commit: 4e3b3bcd81776527fa6f11624d68849de8c8802e [237/237] rtlwifi: rtl8723be: 
Fix array dimension problems

drivers/net/wireless/rtlwifi/rtl8723be/phy.c:648 
_rtl8723be_store_tx_power_by_rate() error: buffer overflow 
'rtlphy->tx_power_by_rate_offset[band]' 4 <= 4
drivers/net/wireless/rtlwifi/rtl8723be/phy.c:648 
_rtl8723be_store_tx_power_by_rate() error: buffer overflow 
'rtlphy->tx_power_by_rate_offset[band][rfpath]' 4 <= 4

git remote add wireless-next 
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next.git
git remote update wireless-next
git checkout 4e3b3bcd81776527fa6f11624d68849de8c8802e
vim +648 drivers/net/wireless/rtlwifi/rtl8723be/phy.c

4e3b3bcd Larry Finger 2014-03-10  632   if (band != BAND_ON_2_4G && band != 
BAND_ON_5G) {
a619d1ab Larry Finger 2014-02-28  633           RT_TRACE(rtlpriv, COMP_POWER, 
PHY_TXPWR,
a619d1ab Larry Finger 2014-02-28  634                    "Invalid Band %d\n", 
band);
4e3b3bcd Larry Finger 2014-03-10  635           return;
4e3b3bcd Larry Finger 2014-03-10  636   }
a619d1ab Larry Finger 2014-02-28  637  
4e3b3bcd Larry Finger 2014-03-10  638   if (rfpath > TX_PWR_BY_RATE_NUM_RF) {
a619d1ab Larry Finger 2014-02-28  639           RT_TRACE(rtlpriv, COMP_POWER, 
PHY_TXPWR,
a619d1ab Larry Finger 2014-02-28  640                    "Invalid RfPath %d\n", 
rfpath);
4e3b3bcd Larry Finger 2014-03-10  641           return;
4e3b3bcd Larry Finger 2014-03-10  642   }
4e3b3bcd Larry Finger 2014-03-10  643   if (txnum > TX_PWR_BY_RATE_NUM_RF) {
a619d1ab Larry Finger 2014-02-28  644           RT_TRACE(rtlpriv, COMP_POWER, 
PHY_TXPWR,
a619d1ab Larry Finger 2014-02-28  645                    "Invalid TxNum %d\n", 
txnum);
4e3b3bcd Larry Finger 2014-03-10  646           return;
4e3b3bcd Larry Finger 2014-03-10  647   }
a619d1ab Larry Finger 2014-02-28 @648   
rtlphy->tx_power_by_rate_offset[band][rfpath][txnum][rate_section] =
a619d1ab Larry Finger 2014-02-28  649                                           
                        data;
a619d1ab Larry Finger 2014-02-28  650  }
a619d1ab Larry Finger 2014-02-28  651  
a619d1ab Larry Finger 2014-02-28  652  static bool 
_rtl8723be_phy_config_bb_with_pgheaderfile(struct ieee80211_hw *hw,
a619d1ab Larry Finger 2014-02-28  653                                           
       u8 configtype)
a619d1ab Larry Finger 2014-02-28  654  {
a619d1ab Larry Finger 2014-02-28  655   struct rtl_priv *rtlpriv = rtl_priv(hw);
a619d1ab Larry Finger 2014-02-28  656   int i;

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation
_______________________________________________
kbuild mailing list
kbuild@lists.01.org
https://lists.01.org/mailman/listinfo/kbuild

Reply via email to