Date: Mon, 28 Mar 2016 09:28:01 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r297342 - stable/10/sys/rpc Message-ID: <201603280928.u2S9S1Tp002349@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603280928.u2S9S1Tp002349>