summaryrefslogtreecommitdiffstats
path: root/sys/netsmb/smb_conn.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netsmb/smb_conn.c')
-rw-r--r--sys/netsmb/smb_conn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netsmb/smb_conn.c b/sys/netsmb/smb_conn.c
index 9c52571..2a1e913 100644
--- a/sys/netsmb/smb_conn.c
+++ b/sys/netsmb/smb_conn.c
@@ -393,7 +393,7 @@ smb_vc_create(struct smb_vcspec *vcspec,
if (gid != SMBM_ANY_GROUP && !groupmember(gid, cred) && !isroot)
return EPERM;
- vcp = smb_zmalloc(sizeof(*vcp), M_SMBCONN, M_WAITOK);
+ vcp = smb_zmalloc(sizeof(*vcp), M_SMBCONN, 0);
smb_co_init(VCTOCP(vcp), SMBL_VC, "smb_vc", td);
vcp->obj.co_free = smb_vc_free;
vcp->obj.co_gone = smb_vc_gone;
@@ -690,7 +690,7 @@ smb_share_create(struct smb_vc *vcp, struct smb_sharespec *shspec,
uid = realuid;
if (gid == SMBM_ANY_GROUP)
gid = cred->cr_groups[0];
- ssp = smb_zmalloc(sizeof(*ssp), M_SMBCONN, M_WAITOK);
+ ssp = smb_zmalloc(sizeof(*ssp), M_SMBCONN, 0);
smb_co_init(SSTOCP(ssp), SMBL_SHARE, "smbss", td);
ssp->obj.co_free = smb_share_free;
ssp->obj.co_gone = smb_share_gone;
OpenPOWER on IntegriCloud