Module Name:    src
Committed By:   knakahara
Date:           Fri Dec 11 04:29:24 UTC 2015

Modified Files:
        src/sys/net: if_gif.c

Log Message:
revert KASSERT. It should use 'if' instead of KASSERT.

see updated(later than r1.18) kmem(9) man.


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/sys/net/if_gif.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_gif.c
diff -u src/sys/net/if_gif.c:1.100 src/sys/net/if_gif.c:1.101
--- src/sys/net/if_gif.c:1.100	Thu Dec 10 08:11:03 2015
+++ src/sys/net/if_gif.c	Fri Dec 11 04:29:24 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_gif.c,v 1.100 2015/12/10 08:11:03 knakahara Exp $	*/
+/*	$NetBSD: if_gif.c,v 1.101 2015/12/11 04:29:24 knakahara Exp $	*/
 /*	$KAME: if_gif.c,v 1.76 2001/08/20 02:01:02 kjc Exp $	*/
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.100 2015/12/10 08:11:03 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.101 2015/12/11 04:29:24 knakahara Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -131,7 +131,8 @@ gif_clone_create(struct if_clone *ifc, i
 	struct gif_softc *sc;
 
 	sc = kmem_zalloc(sizeof(struct gif_softc), KM_SLEEP);
-	KASSERT(sc != NULL);
+	if (sc == NULL)
+		return ENOMEM;
 
 	if_initname(&sc->gif_if, ifc->ifc_name, unit);
 

Reply via email to