mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Give the M_WAITOK flag explicitly to the MALLOC call to silence a runtime
warning ("Bad malloc flags: 0").
This commit is contained in:
parent
a31794d553
commit
788fc48e32
1 changed files with 2 additions and 1 deletions
|
|
@ -155,7 +155,8 @@ smbfs_mount(struct mount *mp, char *path, caddr_t data,
|
|||
#ifdef SMBFS_USEZONE
|
||||
smp = zalloc(smbfsmount_zone);
|
||||
#else
|
||||
MALLOC(smp, struct smbmount*, sizeof(*smp), M_SMBFSDATA, M_USE_RESERVE);
|
||||
MALLOC(smp, struct smbmount*, sizeof(*smp), M_SMBFSDATA,
|
||||
M_WAITOK|M_USE_RESERVE);
|
||||
#endif
|
||||
if (smp == NULL) {
|
||||
printf("could not alloc smbmount\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue