aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/p54/eeprom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/eeprom.c b/drivers/net/wireless/p54/eeprom.c
index 8c05266d37f4..35b09aa0529b 100644
--- a/drivers/net/wireless/p54/eeprom.c
+++ b/drivers/net/wireless/p54/eeprom.c
@@ -261,8 +261,10 @@ static int p54_generate_channel_lists(struct ieee80211_hw *dev)
261 list->max_entries = max_channel_num; 261 list->max_entries = max_channel_num;
262 list->channels = kzalloc(sizeof(struct p54_channel_entry) * 262 list->channels = kzalloc(sizeof(struct p54_channel_entry) *
263 max_channel_num, GFP_KERNEL); 263 max_channel_num, GFP_KERNEL);
264 if (!list->channels) 264 if (!list->channels) {
265 ret = -ENOMEM;
265 goto free; 266 goto free;
267 }
266 268
267 for (i = 0; i < max_channel_num; i++) { 269 for (i = 0; i < max_channel_num; i++) {
268 if (i < priv->iq_autocal_len) { 270 if (i < priv->iq_autocal_len) {