diff options
author | Bill Jordan <bjordan@rajant.com> | 2010-09-10 11:22:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-09-14 16:08:03 -0400 |
commit | a1e567c83f541432e687142570215b75bebb1338 (patch) | |
tree | 5b01247fedf95af42a502aceb28fc4ef6d2541db /net/wireless/nl80211.c | |
parent | 942623166df3256821e8451273bc07737745e3cb (diff) |
nl80211: Uninitialized variable
There is a path in nl80211_set_wiphy where result is tested but
uninitialized.
I am hitting this path when I attempt:
sh# iw dev wlan0 set channel 10
command failed: Unknown error 1069727332 (-1069727332)
Signed-off-by: William Jordan <bjordan@rajant.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r-- | net/wireless/nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 85a23de7bff3..1d6ef24254fe 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -833,7 +833,7 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info) | |||
833 | struct cfg80211_registered_device *rdev; | 833 | struct cfg80211_registered_device *rdev; |
834 | struct net_device *netdev = NULL; | 834 | struct net_device *netdev = NULL; |
835 | struct wireless_dev *wdev; | 835 | struct wireless_dev *wdev; |
836 | int result, rem_txq_params = 0; | 836 | int result = 0, rem_txq_params = 0; |
837 | struct nlattr *nl_txq_params; | 837 | struct nlattr *nl_txq_params; |
838 | u32 changed; | 838 | u32 changed; |
839 | u8 retry_short = 0, retry_long = 0; | 839 | u8 retry_short = 0, retry_long = 0; |