From: Ben Gras Date: Fri, 22 Jul 2005 18:25:06 +0000 (+0000) Subject: Some bugs in memory driver fixed (destination address of user buffer X-Git-Tag: v3.1.0~569 X-Git-Url: http://zhaoyanbai.com/repos/doc/tz-art.htm?a=commitdiff_plain;h=f73af8573a4ad59f3bb3e8b1bf962aad7f10f5ae;p=minix.git Some bugs in memory driver fixed (destination address of user buffer not updated) --- diff --git a/drivers/memory/memory.c b/drivers/memory/memory.c index 6ffd44baa..c7ca64cea 100644 --- a/drivers/memory/memory.c +++ b/drivers/memory/memory.c @@ -197,6 +197,7 @@ unsigned nr_req; /* length of request vector */ SELF, D, (vir_bytes) random_buf, chunk); random_putbytes(random_buf, chunk); } + user_vir += chunk; left -= chunk; } break; @@ -211,6 +212,7 @@ unsigned nr_req; /* length of request vector */ proc_nr, D, user_vir, chunk))) report("MEM","sys_vircopy failed", s); left -= chunk; + user_vir += chunk; } } break;