Move source tree closer to the 2.6.32.17 mainline
/drivers/net/wireless/p54/eeprom.c
blob:8e3818f6832e12987b6294eb4fdb304e0454ede1 -> blob:2c31eb4c21a2e4850732184330cf6959d18f0a85
--- drivers/net/wireless/p54/eeprom.c
+++ drivers/net/wireless/p54/eeprom.c
@@ -261,8 +261,10 @@ static int p54_generate_channel_lists(st
list->max_entries = max_channel_num;
list->channels = kzalloc(sizeof(struct p54_channel_entry) *
max_channel_num, GFP_KERNEL);
- if (!list->channels)
+ if (!list->channels) {
+ ret = -ENOMEM;
goto free;
+ }
for (i = 0; i < max_channel_num; i++) {
if (i < priv->iq_autocal_len) {