From 86fea6be59ad2f1fb3bb539eb35ae7bf9ce276c0 Mon Sep 17 00:00:00 2001 From: Bosko Milekic Date: Thu, 19 Dec 2002 22:58:27 +0000 Subject: o Untangle the confusion with the malloc flags {M_WAITOK, M_NOWAIT} and the mbuf allocator flags {M_TRYWAIT, M_DONTWAIT}. o Fix a bpf_compat issue where malloc() was defined to just call bpf_alloc() and pass the 'canwait' flag(s) along. It's been changed to call bpf_alloc() but pass the corresponding M_TRYWAIT or M_DONTWAIT flag (and only one of those two). Submitted by: Hiten Pandya (hiten->commit_count++) --- sys/netsmb/smb_trantcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netsmb') diff --git a/sys/netsmb/smb_trantcp.c b/sys/netsmb/smb_trantcp.c index 37085b5cadbab..cf0adcbb3e99d 100644 --- a/sys/netsmb/smb_trantcp.c +++ b/sys/netsmb/smb_trantcp.c @@ -648,7 +648,7 @@ smb_nbst_send(struct smb_vc *vcp, struct mbuf *m0, struct thread *td) error = ENOTCONN; goto abort; } - M_PREPEND(m0, 4, M_WAITOK); + M_PREPEND(m0, 4, M_TRYWAIT); if (m0 == NULL) return ENOBUFS; nb_sethdr(m0, NB_SSN_MESSAGE, m_fixhdr(m0) - 4); -- cgit v1.3