diff options
author | mav <mav@FreeBSD.org> | 2016-03-19 11:48:06 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2016-03-19 11:48:06 +0000 |
commit | 55b7402d4970d24bd1d5faf91a5fb89473442729 (patch) | |
tree | 9ebbce501b04b1d0e1be7e7c57d7fa96abc4a6a2 /sys/rpc/svc.c | |
parent | 986f63e12f3e6ace36cead1b72ee3ebf2e2d3e13 (diff) | |
download | FreeBSD-src-55b7402d4970d24bd1d5faf91a5fb89473442729.zip FreeBSD-src-55b7402d4970d24bd1d5faf91a5fb89473442729.tar.gz |
Fix incorrect (fortunately bigger) malloc size.
Submitted by: pfg
MFC after: 1 week
Diffstat (limited to 'sys/rpc/svc.c')
-rw-r--r-- | sys/rpc/svc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/rpc/svc.c b/sys/rpc/svc.c index f725d53..b436c18 100644 --- a/sys/rpc/svc.c +++ b/sys/rpc/svc.c @@ -560,7 +560,7 @@ svc_loss_reg(SVCXPRT *xprt, void (*dispatch)(SVCXPRT *)) 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); |