aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ipw2x00/ipw2200.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c
index cb2552a6777c..d04d76082777 100644
--- a/drivers/net/wireless/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/ipw2x00/ipw2200.c
@@ -11470,6 +11470,10 @@ static int ipw_net_init(struct net_device *dev)
11470 bg_band->channels = 11470 bg_band->channels =
11471 kzalloc(geo->bg_channels * 11471 kzalloc(geo->bg_channels *
11472 sizeof(struct ieee80211_channel), GFP_KERNEL); 11472 sizeof(struct ieee80211_channel), GFP_KERNEL);
11473 if (!bg_band->channels) {
11474 rc = -ENOMEM;
11475 goto out;
11476 }
11473 /* translate geo->bg to bg_band.channels */ 11477 /* translate geo->bg to bg_band.channels */
11474 for (i = 0; i < geo->bg_channels; i++) { 11478 for (i = 0; i < geo->bg_channels; i++) {
11475 bg_band->channels[i].band = IEEE80211_BAND_2GHZ; 11479 bg_band->channels[i].band = IEEE80211_BAND_2GHZ;
@@ -11505,6 +11509,10 @@ static int ipw_net_init(struct net_device *dev)
11505 a_band->channels = 11509 a_band->channels =
11506 kzalloc(geo->a_channels * 11510 kzalloc(geo->a_channels *
11507 sizeof(struct ieee80211_channel), GFP_KERNEL); 11511 sizeof(struct ieee80211_channel), GFP_KERNEL);
11512 if (!a_band->channels) {
11513 rc = -ENOMEM;
11514 goto out;
11515 }
11508 /* translate geo->bg to a_band.channels */ 11516 /* translate geo->bg to a_band.channels */
11509 for (i = 0; i < geo->a_channels; i++) { 11517 for (i = 0; i < geo->a_channels; i++) {
11510 a_band->channels[i].band = IEEE80211_BAND_2GHZ; 11518 a_band->channels[i].band = IEEE80211_BAND_2GHZ;