svn commit: r239976 - stable/9/sys/netinet
Mikolaj Golub
trociny at FreeBSD.org
Sat Sep 1 09:58:10 UTC 2012
Author: trociny
Date: Sat Sep 1 09:58:09 2012
New Revision: 239976
URL: http://svn.freebsd.org/changeset/base/239976
Log:
MFC r238084:
Don't check for ifp != NULL before KASSERT, as ifp may not be NULL here
(it is dereferenced below).
Discussed with: jhb
Modified:
stable/9/sys/netinet/igmp.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/netinet/igmp.c
==============================================================================
--- stable/9/sys/netinet/igmp.c Sat Sep 1 09:55:35 2012 (r239975)
+++ stable/9/sys/netinet/igmp.c Sat Sep 1 09:58:09 2012 (r239976)
@@ -2284,13 +2284,11 @@ igmp_change_state(struct in_multi *inm)
*/
KASSERT(inm->inm_ifma != NULL, ("%s: no ifma", __func__));
ifp = inm->inm_ifma->ifma_ifp;
- if (ifp != NULL) {
- /*
- * Sanity check that netinet's notion of ifp is the
- * same as net's.
- */
- KASSERT(inm->inm_ifp == ifp, ("%s: bad ifp", __func__));
- }
+ /*
+ * Sanity check that netinet's notion of ifp is the
+ * same as net's.
+ */
+ KASSERT(inm->inm_ifp == ifp, ("%s: bad ifp", __func__));
IGMP_LOCK();
More information about the svn-src-stable-9
mailing list