diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-08-14 17:41:47 +1000 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-16 13:41:16 -0500 |
commit | bc9b78debf63c9be051abe51403736d386092d09 (patch) | |
tree | f2cb42a1327b926b9fde51a840d58dbbc840fd99 /dma-helpers.c | |
parent | ddb97f1debbb6be8d871f3b565f7b8befebf0f4f (diff) |
dma: Fix stupid typo/thinko
Hi hard a brain fart when coding that function, it will
fail to "set" the memory beyond the first 512 bytes. This
is in turn causing guest crashes in ibmveth (spapr_llan.c
on the qemu side) due to the receive queue not being
properly initialized.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'dma-helpers.c')
-rw-r--r-- | dma-helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dma-helpers.c b/dma-helpers.c index 13593d1b42..433d8b21b3 100644 --- a/dma-helpers.c +++ b/dma-helpers.c @@ -24,8 +24,8 @@ static void do_dma_memory_set(dma_addr_t addr, uint8_t c, dma_addr_t len) while (len > 0) { l = len < FILLBUF_SIZE ? len : FILLBUF_SIZE; cpu_physical_memory_rw(addr, fillbuf, l, true); - len -= len; - addr += len; + len -= l; + addr += l; } } |