Date: Mon, 28 Mar 2016 09:29:14 +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-9@freebsd.org Subject: svn commit: r297343 - stable/9/sys/rpc Message-ID: <201603280929.u2S9TEQ2002450@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603280929.u2S9TEQ2002450>