Fix incorrect (fortunately bigger) malloc size.

Submitted by:	pfg
MFC after:	1 week
This commit is contained in:
Alexander Motin 2016-03-19 11:48:06 +00:00
parent cb6b0ad147
commit 8576dc0092
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297051

View File

@ -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);