Thanks, sorry about that, I had compiled and tested this a dozen times before 
committing, not
sure how this crept in.

Scott

> On Jul 12, 2019, at 1:14 PM, Konstantin Belousov <k...@freebsd.org> wrote:
> 
> Author: kib
> Date: Fri Jul 12 19:14:52 2019
> New Revision: 349953
> URL: https://svnweb.freebsd.org/changeset/base/349953
> 
> Log:
>  Fix syntax.
> 
>  Nod from:    jhb
>  Sponsored by:        The FreeBSD Foundation
> 
> Modified:
>  head/sys/amd64/vmm/vmm_dev.c
> 
> Modified: head/sys/amd64/vmm/vmm_dev.c
> ==============================================================================
> --- head/sys/amd64/vmm/vmm_dev.c      Fri Jul 12 18:50:46 2019        
> (r349952)
> +++ head/sys/amd64/vmm/vmm_dev.c      Fri Jul 12 19:14:52 2019        
> (r349953)
> @@ -291,7 +291,7 @@ alloc_memseg(struct vmmdev_softc *sc, struct vm_memseg
>        */
>       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;
> 

_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to