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
dt-bindings: iio: afe: add bindings for temperature transducers
[linux-2.6-microblaze.git]
/
block
/
bio.c
diff --git
a/block/bio.c
b/block/bio.c
index
0d400ba
..
4312a80
100644
(file)
--- a/
block/bio.c
+++ b/
block/bio.c
@@
-569,7
+569,8
@@
static void bio_truncate(struct bio *bio, unsigned new_size)
offset = new_size - done;
else
offset = 0;
- zero_user(bv.bv_page, offset, bv.bv_len - offset);
+ zero_user(bv.bv_page, bv.bv_offset + offset,
+ bv.bv_len - offset);
truncated = true;
}
done += bv.bv_len;