]> git.proxmox.com Git - mirror_qemu.git/commit
usb-ehci: fix offset writeback in ehci_buffer_rw
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 20 May 2011 15:25:07 +0000 (17:25 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 14 Jun 2011 10:56:48 +0000 (12:56 +0200)
commitba7cb5a86ae2ad8b2b78b9367493f9a0d990bac8
tree922fcf3e9886a81209afed55a474bec411dee160
parent8ac6d699c453e0f46e601597e371e9ae58c0237e
usb-ehci: fix offset writeback in ehci_buffer_rw

Two bugs at once:

First the mask is backwards, so the it used to keeps the offset and
clears the page address, which is not what we need when we update the
offset.

Second the offset calculation is wrong in case head isn't page aligned.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-ehci.c