diff options
| author | Robert Morris | 2020-08-07 15:06:43 -0400 |
|---|---|---|
| committer | Robert Morris | 2020-08-07 15:06:43 -0400 |
| commit | 354adfdafc3993771f58236771e213016ff9aed8 (patch) | |
| tree | 897b1539a46d30b14a85965a9e90ecdb0286bcfe /kernel/pipe.c | |
| parent | f01b1a8b71b8e0e8d7564a475a31c4e951463874 (diff) | |
streamline copyin/copyout code in usertests
fix bugs in read/write return values when there's an error
Diffstat (limited to 'kernel/pipe.c')
| -rw-r--r-- | kernel/pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/pipe.c b/kernel/pipe.c index c066afb..7ed402d 100644 --- a/kernel/pipe.c +++ b/kernel/pipe.c @@ -96,7 +96,7 @@ pipewrite(struct pipe *pi, uint64 addr, int n) } wakeup(&pi->nread); release(&pi->lock); - return n; + return i; } int |
