summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChr <chunkeey@web.de>2009-01-19 14:30:26 +0100
committerJohn W. Linville <linville@tuxdriver.com>2009-01-22 13:55:02 -0500
commit40ab73cc6c38ce93253fe8c2d7e502c948adfd13 (patch)
tree7f866ca1c497c6c589653839730202d25fb02742 /drivers
parent11eaea416716deebcb18383b201ba8033cbf33dc (diff)
downloadop-kernel-dev-40ab73cc6c38ce93253fe8c2d7e502c948adfd13.zip
op-kernel-dev-40ab73cc6c38ce93253fe8c2d7e502c948adfd13.tar.gz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/p54/p54common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c
index 12d0717..61b0193 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) {
OpenPOWER on IntegriCloud