]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commit
rng-egd: offset the point when repeatedly read from the buffer
authorAmos Kong <akong@redhat.com>
Thu, 21 Nov 2013 08:42:51 +0000 (16:42 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 9 Dec 2013 17:40:30 +0000 (11:40 -0600)
commit7cfd037403ba34e8ed1ebfa4e7d6abec738e2000
tree461beede25de95e62bcce319cd648c77002e5341
parent0f6298786f0d88a29d150a19870f2ea7bc5c01a5
rng-egd: offset the point when repeatedly read from the buffer

The buffer content might be read out more than once, currently
we just repeatedly read the first data block, buffer offset is
missing.

Cc: qemu-stable@nongnu.org
Signed-off-by: Amos Kong <akong@redhat.com>
Message-id: 1385023371-8198-3-git-send-email-akong@redhat.com
Signed-off-by: Anthony Liguori <aliguori@amazon.com>
(cherry picked from commit 1eb1bd9eafa890f1f4d16ef5cb8b9239a86874d9)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
backends/rng-egd.c