]> Zhao Yanbai Git Server - minix.git/commitdiff
memory driver: propagate data copy error to caller
authorDavid van Moolenbroek <david@minix3.org>
Thu, 9 Sep 2010 16:13:02 +0000 (16:13 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 9 Sep 2010 16:13:02 +0000 (16:13 +0000)
drivers/memory/memory.c

index 0d2f1ed90eb36545f73043e5be3369e801d4f6bc..a3e60e469f961288c3d814344d79b0142c815535 100644 (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;
                }