linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] p54: add missing break in eeprom parser
@ 2009-01-19 13:30 Chr
  0 siblings, 0 replies; only message in thread
From: Chr @ 2009-01-19 13:30 UTC (permalink / raw)
  To: linux-wireless; +Cc: John W. Linville

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

Signed-off-by: Christian Lamparter <chunkeey@web.de>
---
John,

can you please add this patch and "p54: more cryptographic accelerator fixes" to wireless-2.6 as well?
---
diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c
index 6203105..2a515ef 100644
--- a/drivers/net/wireless/p54/p54common.c
+++ b/drivers/net/wireless/p54/p54common.c
@@ -545,8 +545,8 @@ 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) {

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-19 13:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-19 13:30 [PATCH 1/2] p54: add missing break in eeprom parser Chr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).