diff options
Diffstat (limited to 'scullc/main.c')
-rw-r--r-- | scullc/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scullc/main.c b/scullc/main.c index 0cfe219..5769f1a 100644 --- a/scullc/main.c +++ b/scullc/main.c @@ -429,8 +429,8 @@ static int scullc_defer_op(int write, struct kiocb *iocb, const struct iovec *io else len = scullc_read(iocb->ki_filp, iovec[seg].iov_base, iovec[seg].iov_len, &pos); - if (result < 0) - return result; + if (len < 0) + return len; result += len; } |