summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <martinez.javier@gmail.com>2010-11-28 19:36:37 +0100
committerJavier Martinez Canillas <martinez.javier@gmail.com>2010-11-28 19:36:37 +0100
commitf04f963c738434007c87cda6f035a6daa2d5192b (patch)
tree90e47f5670d524eae603753d9fab4842a2dad902
parent7539b13856d8f37139561738c0a022b434b89e6f (diff)
downloadldd3-f04f963c738434007c87cda6f035a6daa2d5192b.tar.gz
scullc: main: Check return in correct variable
-rw-r--r--scullc/main.c4
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;
}