Fix incorrect (fortunately bigger) malloc size.
Submitted by: pfg MFC after: 1 week
This commit is contained in:
parent
cb6b0ad147
commit
8576dc0092
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user