mirror of
https://github.com/opnsense/src.git
synced 2026-02-26 11:20:29 -05:00
Fix syntax.
Nod from: jhb Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
2d5fe36980
commit
026e450262
1 changed files with 1 additions and 1 deletions
|
|
@ -291,7 +291,7 @@ alloc_memseg(struct vmmdev_softc *sc, struct vm_memseg *mseg)
|
|||
*/
|
||||
if (VM_MEMSEG_NAME(mseg)) {
|
||||
sysmem = false;
|
||||
name = malloc(sizeof(mseg->name) M_VMMDEV, M_WAITOK);
|
||||
name = malloc(sizeof(mseg->name), M_VMMDEV, M_WAITOK);
|
||||
error = copystr(mseg->name, name, sizeof(mseg->name), NULL);
|
||||
if (error)
|
||||
goto done;
|
||||
|
|
|
|||
Loading…
Reference in a new issue