Module Name:    src
Committed By:   maxv
Date:           Sun Aug 20 11:00:30 UTC 2017

Modified Files:
        src/sys/dev/ic: rrunner.c

Log Message:
M_WAITOK cannot fail, so remove the test, otherwise it looks like an
spl leak; found by mootja


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/dev/ic/rrunner.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/dev/ic/rrunner.c
diff -u src/sys/dev/ic/rrunner.c:1.83 src/sys/dev/ic/rrunner.c:1.84
--- src/sys/dev/ic/rrunner.c:1.83	Thu Dec 15 09:28:05 2016
+++ src/sys/dev/ic/rrunner.c	Sun Aug 20 11:00:30 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: rrunner.c,v 1.83 2016/12/15 09:28:05 ozaki-r Exp $	*/
+/*	$NetBSD: rrunner.c,v 1.84 2017/08/20 11:00:30 maxv Exp $	*/
 
 /*
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rrunner.c,v 1.83 2016/12/15 09:28:05 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rrunner.c,v 1.84 2017/08/20 11:00:30 maxv Exp $");
 
 #include "opt_inet.h"
 
@@ -786,8 +786,6 @@ esh_fpopen(dev_t dev, int oflags, int de
 
 	recv = (struct esh_fp_ring_ctl *)
 	    malloc(sizeof(*recv), M_DEVBUF, M_WAITOK|M_ZERO);
-	if (recv == NULL)
-		return(ENOMEM);
 	TAILQ_INIT(&recv->ec_queue);
 
 	size = RR_FP_RECV_RING_SIZE * sizeof(struct rr_descr);

Reply via email to