svn commit: r297342 - stable/10/sys/rpc
Alexander Motin
mav at FreeBSD.org
Mon Mar 28 09:28:02 UTC 2016
Author: mav
Date: Mon Mar 28 09:28:01 2016
New Revision: 297342
URL: https://svnweb.freebsd.org/changeset/base/297342
Log:
MFC r297051: Fix incorrect (fortunately bigger) malloc size.
Modified:
stable/10/sys/rpc/svc.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/rpc/svc.c
==============================================================================
--- stable/10/sys/rpc/svc.c Mon Mar 28 09:26:44 2016 (r297341)
+++ stable/10/sys/rpc/svc.c Mon Mar 28 09:28:01 2016 (r297342)
@@ -560,7 +560,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-all
mailing list