Use EFAULT instead of EINVAL for bad user pointers
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 6 Mar 2013 21:19:13 +0000 (13:19 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 6 Mar 2013 21:19:13 +0000 (13:19 -0800)
commit105c1e73afa00917522b91af51b2d7a2320ac6f7
tree3d5c2fe91d186c47c91b3dfa9ea9d34dae8807db
parent98e184a9842c997d4be7e9d6e2f8c2a92c4f27d6
Use EFAULT instead of EINVAL for bad user pointers

And don't reset errno when using the memcpy errno helpers.
kern/src/syscall.c
kern/src/umem.c