|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [IA64] Fix calling xencomm_copy_chunk_{to
# HG changeset patch
# User awilliam@xxxxxxxxxxxx
# Date 1167952225 25200
# Node ID eb40e07b867f9708a9c39225ce1591e19808852a
# Parent 2d4807ed105677e6039abcd1877ec5fa2803f403
[IA64] Fix calling xencomm_copy_chunk_{to, from} with len = 0
Originally debugged by Kazuhiro Suzuki
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
xen/arch/ia64/xen/xencomm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff -r 2d4807ed1056 -r eb40e07b867f xen/arch/ia64/xen/xencomm.c
--- a/xen/arch/ia64/xen/xencomm.c Thu Jan 04 16:00:56 2007 -0700
+++ b/xen/arch/ia64/xen/xencomm.c Thu Jan 04 16:10:25 2007 -0700
@@ -153,7 +153,7 @@ xencomm_copy_from_guest(
chunksz -= chunk_skip;
skip -= chunk_skip;
- if (skip == 0) {
+ if (skip == 0 && chunksz > 0) {
unsigned int bytes = min(chunksz, n - to_pos);
int res;
@@ -295,7 +295,7 @@ xencomm_copy_to_guest(
skip -= chunk_skip;
dest_paddr += chunk_skip;
- if (skip == 0) {
+ if (skip == 0 && chunksz > 0) {
unsigned int bytes = min(chunksz, n - from_pos);
int res;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [IA64] Fix calling xencomm_copy_chunk_{to, from} with len = 0,
Xen patchbot-unstable <=
|
|
|
|
|