Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276478
b: refs/heads/master
c: 9649fa1
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Andrzej Siewior authored and Nicholas Bellinger committed Dec 6, 2011
1 parent e0246d5 commit d0c309e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 5c73b678f729ea087ef57b59a5d7b5dd3a97042b
refs/heads/master: 9649fa1b8764f64c8cc4293e197e14cd46fe7205
12 changes: 6 additions & 6 deletions trunk/drivers/target/target_core_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ static int fd_do_readv(struct se_task *task)
return -ENOMEM;
}

for (i = 0; i < task->task_sg_nents; i++) {
iov[i].iov_len = sg[i].length;
iov[i].iov_base = sg_virt(&sg[i]);
for_each_sg(task->task_sg, sg, task->task_sg_nents, i) {
iov[i].iov_len = sg->length;
iov[i].iov_base = sg_virt(sg);
}

old_fs = get_fs();
Expand Down Expand Up @@ -342,9 +342,9 @@ static int fd_do_writev(struct se_task *task)
return -ENOMEM;
}

for (i = 0; i < task->task_sg_nents; i++) {
iov[i].iov_len = sg[i].length;
iov[i].iov_base = sg_virt(&sg[i]);
for_each_sg(task->task_sg, sg, task->task_sg_nents, i) {
iov[i].iov_len = sg->length;
iov[i].iov_base = sg_virt(sg);
}

old_fs = get_fs();
Expand Down

0 comments on commit d0c309e

Please sign in to comment.