Parcourir la source

p54: add missing break in eeprom parser

This patch fixes a obvious memory leak in the eeprom parser.

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Chr il y a 16 ans
Parent
commit
40ab73cc6c
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      drivers/net/wireless/p54/p54common.c

+ 2 - 2
drivers/net/wireless/p54/p54common.c

@@ -451,8 +451,8 @@ static int p54_parse_eeprom(struct ieee80211_hw *dev, void *eeprom, int len)
 			}
 			if (err)
 				goto err;
-
-		}
+			}
+			break;
 		case PDR_PRISM_ZIF_TX_IQ_CALIBRATION:
 			priv->iq_autocal = kmalloc(data_len, GFP_KERNEL);
 			if (!priv->iq_autocal) {