diff options
Diffstat (limited to 'sys/netsmb/smb_subr.c')
-rw-r--r-- | sys/netsmb/smb_subr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netsmb/smb_subr.c b/sys/netsmb/smb_subr.c index ae21133..55c4c26 100644 --- a/sys/netsmb/smb_subr.c +++ b/sys/netsmb/smb_subr.c @@ -94,7 +94,7 @@ smb_strdup(const char *s) int len; len = s ? strlen(s) + 1 : 1; - p = malloc(len, M_SMBSTR, 0); + p = malloc(len, M_SMBSTR, M_WAITOK); if (s) bcopy(s, p, len); else @@ -120,7 +120,7 @@ smb_strdupin(char *s, int maxlen) if (bt == 0) break; } - p = malloc(len, M_SMBSTR, 0); + p = malloc(len, M_SMBSTR, M_WAITOK); copyin(s, p, len); return p; } @@ -135,7 +135,7 @@ smb_memdupin(void *umem, int len) if (len > 8 * 1024) return NULL; - p = malloc(len, M_SMBSTR, 0); + p = malloc(len, M_SMBSTR, M_WAITOK); if (copyin(umem, p, len) == 0) return p; free(p, M_SMBSTR); @@ -152,7 +152,7 @@ smb_memdup(const void *umem, int len) if (len > 8 * 1024) return NULL; - p = malloc(len, M_SMBSTR, 0); + p = malloc(len, M_SMBSTR, M_WAITOK); if (p == NULL) return NULL; bcopy(umem, p, len); |