diff options
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r-- | net/wireless/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index a329429bfdd8..be75a3a0424e 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c | |||
@@ -1013,6 +1013,9 @@ int ieee80211_get_ratemask(struct ieee80211_supported_band *sband, | |||
1013 | { | 1013 | { |
1014 | int i, j; | 1014 | int i, j; |
1015 | 1015 | ||
1016 | if (!sband) | ||
1017 | return -EINVAL; | ||
1018 | |||
1016 | if (n_rates == 0 || n_rates > NL80211_MAX_SUPP_RATES) | 1019 | if (n_rates == 0 || n_rates > NL80211_MAX_SUPP_RATES) |
1017 | return -EINVAL; | 1020 | return -EINVAL; |
1018 | 1021 | ||