Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 107147
b: refs/heads/master
c: 94ad374
h: refs/heads/master
i:
  107145: 37800bb
  107143: a13dd3f
v: v3
  • Loading branch information
Linus Torvalds committed Jul 30, 2008
1 parent e3a9421 commit 64dc441
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0056e65f9e28d83ee1a3fb4f7d0041e838f03c34
refs/heads/master: 94ad374a0751f40d25e22e036c37f7263569d24c
2 changes: 1 addition & 1 deletion trunk/mm/filemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@ void iov_iter_advance(struct iov_iter *i, size_t bytes)
* The !iov->iov_len check ensures we skip over unlikely
* zero-length segments (without overruning the iovec).
*/
while (bytes || unlikely(!iov->iov_len && i->count)) {
while (bytes || unlikely(i->count && !iov->iov_len)) {
int copy;

copy = min(bytes, iov->iov_len - base);
Expand Down

0 comments on commit 64dc441

Please sign in to comment.