svn commit: r297343 - stable/9/sys/rpc

Alexander Motin mav at FreeBSD.org
Mon Mar 28 09:29:15 UTC 2016


Author: mav
Date: Mon Mar 28 09:29:14 2016
New Revision: 297343
URL: https://svnweb.freebsd.org/changeset/base/297343

Log:
  MFC r297051: Fix incorrect (fortunately bigger) malloc size.

Modified:
  stable/9/sys/rpc/svc.c
Directory Properties:
  stable/9/   (props changed)
  stable/9/sys/   (props changed)

Modified: stable/9/sys/rpc/svc.c
==============================================================================
--- stable/9/sys/rpc/svc.c	Mon Mar 28 09:28:01 2016	(r297342)
+++ stable/9/sys/rpc/svc.c	Mon Mar 28 09:29:14 2016	(r297343)
@@ -559,7 +559,7 @@ svc_loss_reg(SVCXPRT *xprt, void (*dispa
 		mtx_unlock(&pool->sp_lock);
 		return (TRUE);
 	}
-	s = malloc(sizeof (struct svc_callout), M_RPC, M_NOWAIT);
+	s = malloc(sizeof(struct svc_loss_callout), M_RPC, M_NOWAIT);
 	if (s == NULL) {
 		mtx_unlock(&pool->sp_lock);
 		return (FALSE);


More information about the svn-src-stable-9 mailing list