Skip to content

Commit

Permalink
dma: Fix stupid typo/thinko
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
  • Loading branch information
ozbenh authored and Anthony Liguori committed Aug 16, 2012
1 parent ddb97f1 commit bc9b78d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dma-helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit bc9b78d

Please sign in to comment.