Use NG_WAITOK as ng_package_msg() argument instead of M_WAITOK.

Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
This commit is contained in:
Alexander Motin 2014-05-22 06:40:07 +00:00
parent 885476cb9a
commit 3786381688

View File

@ -301,7 +301,7 @@ ngc_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *addr,
}
}
item = ng_package_msg(msg, M_WAITOK);
item = ng_package_msg(msg, NG_WAITOK);
if ((error = ng_address_path((pcbp->sockdata->node), item, path, 0))
!= 0) {
#ifdef TRACE_MESSAGES