Home
last modified time | relevance | path

Searched hist:f823a2aa (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dstf.cf823a2aa Mon Jul 18 18:24:37 CDT 2016 Florian Fainelli <f.fainelli@gmail.com> brcmsmac: Initialize power in brcms_c_stf_ss_algo_channel_get()

wlc_phy_txpower_get_current() does a logical OR of power->flags, which
presumes that power.flags was initiliazed earlier by the caller,
unfortunately, this is not the case, so make sure we zero out the struct
tx_power before calling into wlc_phy_txpower_get_current().

Reported-by: coverity (CID 146011)
Fixes: 5b435de0d7868 ("net: wireless: add brcm80211 drivers")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
f823a2aa Mon Jul 18 18:24:37 CDT 2016 Florian Fainelli <f.fainelli@gmail.com> brcmsmac: Initialize power in brcms_c_stf_ss_algo_channel_get()

wlc_phy_txpower_get_current() does a logical OR of power->flags, which
presumes that power.flags was initiliazed earlier by the caller,
unfortunately, this is not the case, so make sure we zero out the struct
tx_power before calling into wlc_phy_txpower_get_current().

Reported-by: coverity (CID 146011)
Fixes: 5b435de0d7868 ("net: wireless: add brcm80211 drivers")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>