From: Chr Date: Mon, 19 Jan 2009 13:30:26 +0000 (+0100) Subject: p54: add missing break in eeprom parser X-Git-Tag: v2.6.29-rc3~23^2~32 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=40ab73cc6c38ce93253fe8c2d7e502c948adfd13;p=linux-2.6-omap-h63xx.git p54: add missing break in eeprom parser This patch fixes a obvious memory leak in the eeprom parser. Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c index 12d0717c399..61b01930d9a 100644 --- a/drivers/net/wireless/p54/p54common.c +++ b/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) {