Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Sep 2009 16:12:07 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r196934 - head/sys/dev/ath/ath_hal
Message-ID:  <200909071612.n87GC7tW019850@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909071612.n87GC7tW019850>