]> git.proxmox.com Git - qemu.git/commit
ide: also reset io_buffer_index for writes
authorChristoph Hellwig <hch@lst.de>
Mon, 20 Dec 2010 12:45:58 +0000 (13:45 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 10:08:51 +0000 (11:08 +0100)
commit596bb44dead047249c11df24b0e1ffaa514f4909
treedb344df779da14b9b04d514208de20ef8a0c12bc
parentcd369c4634e58a99fb82f076e6117bfdf0012b8e
ide: also reset io_buffer_index for writes

Currenly the code only resets the io_buffer_index field for reads,
but the code seems to expect this for all types of I/O.  I guess
we simply don't hit large enough transfers that would require this
often enough.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/core.c