Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336231
b: refs/heads/master
c: 27d7c2a
h: refs/heads/master
i:
  336229: eb6fa98
  336227: 94f224e
  336223: 7079864
v: v3
  • Loading branch information
Dan Carpenter authored and Linus Torvalds committed Dec 5, 2012
1 parent 7d2d459 commit 3ea92ce
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: df2fc246c8ee8b6067af1fa55d3bc23107457f61
refs/heads/master: 27d7c2a006a81c04fab00b8cd81b99af3b32738d
2 changes: 1 addition & 1 deletion trunk/fs/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2935,7 +2935,7 @@ static void guard_bh_eod(int rw, struct bio *bio, struct buffer_head *bh)
bio->bi_io_vec[0].bv_len = bytes;

/* ..and clear the end of the buffer for reads */
if (rw & READ) {
if ((rw & RW_MASK) == READ) {
void *kaddr = kmap_atomic(bh->b_page);
memset(kaddr + bh_offset(bh) + bytes, 0, bh->b_size - bytes);
kunmap_atomic(kaddr);
Expand Down

0 comments on commit 3ea92ce

Please sign in to comment.