2015-01-06 19:45:15

by John W. Linville

[permalink] [raw]
Subject: [PATCH] mac80211: uninitialized return val in __ieee80211_sta_handle_tspec_ac_params

Coverity: CID 1260096

Signed-off-by: John W. Linville <[email protected]>
---
net/mac80211/mlme.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 2c36c4765f47..837a406a9dd6 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1643,7 +1643,7 @@ __ieee80211_sta_handle_tspec_ac_params(struct ieee80211_sub_if_data *sdata)
{
struct ieee80211_local *local = sdata->local;
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
- bool ret;
+ bool ret = false;
int ac;

if (local->hw.queues < IEEE80211_NUM_ACS)
--
2.1.0