memory driver: propagate data copy error to caller

This commit is contained in:
David van Moolenbroek 2010-09-09 16:13:02 +00:00
parent 2bda06bbb5
commit 6b902492ae

View file

@ -324,7 +324,7 @@ unsigned nr_req; /* length of request vector */
s=sys_safecopyto(proc_nr, user_vir,
vir_offset+suboffset, (vir_bytes) dev_zero, chunk, D);
if(s != OK)
printf("MEM: sys_safecopyto failed: %d\n", s);
return s;
left -= chunk;
suboffset += chunk;
}