[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] exec: Fix bounce buffer allocation in addre
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] exec: Fix bounce buffer allocation in address_space_map() |
Date: |
Mon, 22 Jul 2013 15:06:33 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 |
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);