svn commit: r196934 - head/sys/dev/ath/ath_hal

Sam Leffler sam at FreeBSD.org
Mon Sep 7 16:12:07 UTC 2009


Author: sam
Date: Mon Sep  7 16:12:07 2009
New Revision: 196934
URL: http://svn.freebsd.org/changeset/base/196934

Log:
  fix extraneous return that can cause a memory leak
  
  Submitted by:	phk
  MFC after:	1 week

Modified:
  head/sys/dev/ath/ath_hal/ah_eeprom_v3.c

Modified: head/sys/dev/ath/ath_hal/ah_eeprom_v3.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ah_eeprom_v3.c	Mon Sep  7 16:08:21 2009	(r196933)
+++ head/sys/dev/ath/ath_hal/ah_eeprom_v3.c	Mon Sep  7 16:12:07 2009	(r196934)
@@ -1759,7 +1759,7 @@ legacyEepromDetach(struct ath_hal *ah)
 	HAL_EEPROM *ee = AH_PRIVATE(ah)->ah_eeprom;
 
         if (ee->ee_version >= AR_EEPROM_VER4_0 && ee->ee_eepMap == 1)
-		return freeEepromRawPowerCalInfo5112(ah, ee);
+		freeEepromRawPowerCalInfo5112(ah, ee);
 	ath_hal_free(ee);
 	AH_PRIVATE(ah)->ah_eeprom = AH_NULL;
 }


More information about the svn-src-all mailing list