Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2008 23:30:58 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 137451 for review
Message-ID:  <200803112330.m2BNUw2h050474@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=137451

Change 137451 by sam@sam_ebb on 2008/03/11 23:30:04

	plug memory leak in ieee80211_ioctl_setregdomain
	Submitted by:	Miguel Vega

Affected files ...

.. //depot/projects/vap/sys/net80211/ieee80211_ioctl.c#42 edit

Differences ...

==== //depot/projects/vap/sys/net80211/ieee80211_ioctl.c#42 (text+ko) ====

@@ -2052,12 +2052,14 @@
 	}
 	IEEE80211_UNLOCK(ic);
 
-	return ENETRESET;
-invalid:
-	error = EINVAL;
+	error = ENETRESET;
+	/* fall thru... */
 bad:
 	FREE(reg, M_TEMP);
 	return error;
+invalid:
+	error = EINVAL;
+	goto bad;
 }
 
 static int



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