projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pipe: Fix iteration end check in fuse_dev_splice_write()
[linux-2.6-microblaze.git]
/
fs
/
fuse
/
dev.c
diff --git
a/fs/fuse/dev.c
b/fs/fuse/dev.c
index
d4e6691
..
8e02d76
100644
(file)
--- a/
fs/fuse/dev.c
+++ b/
fs/fuse/dev.c
@@
-1965,7
+1965,7
@@
static ssize_t fuse_dev_splice_write(struct pipe_inode_info *pipe,
nbuf = 0;
rem = 0;
- for (idx = tail; idx
<
head && rem < len; idx++)
+ for (idx = tail; idx
!=
head && rem < len; idx++)
rem += pipe->bufs[idx & mask].len;
ret = -EINVAL;