Il 22/07/2013 14:43, Kevin Wolf ha scritto:
> -        bounce.buffer = qemu_memalign(TARGET_PAGE_SIZE, TARGET_PAGE_SIZE);
> +        /* Avoid unbounded allocations */
> +        l = TARGET_PAGE_SIZE;

This should be l = MIN(l, TARGET_PAGE_SIZE).  Otherwise the patch is okay.

Paolo

> +        bounce.buffer = qemu_memalign(TARGET_PAGE_SIZE, l);


Reply via email to