From: David van Moolenbroek Date: Thu, 9 Sep 2010 16:13:02 +0000 (+0000) Subject: memory driver: propagate data copy error to caller X-Git-Tag: v3.1.8~9 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=6b902492ae4fc6bc7d2b827e3a1fecd9bf4e5b0a;p=minix.git memory driver: propagate data copy error to caller --- diff --git a/drivers/memory/memory.c b/drivers/memory/memory.c index 0d2f1ed90..a3e60e469 100644 --- a/drivers/memory/memory.c +++ b/drivers/memory/memory.c @@ -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; }