Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336236
b: refs/heads/master
c: 54d1ae4
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Dec 6, 2012
1 parent fc829c6 commit 457b5cb
Show file tree
Hide file tree
Showing 3 changed files with 5 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: f3537f91f9be2ce5fcbaa1aa6d787ad0436daec6
refs/heads/master: 54d1ae492f724f103a07f69c8e429a35d43b5c52
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
3 changes: 3 additions & 0 deletions trunk/kernel/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ static void watchdog_disable(unsigned int cpu)
{
struct hrtimer *hrtimer = &__raw_get_cpu_var(watchdog_hrtimer);

if (!watchdog_enabled)
return;

watchdog_set_prio(SCHED_NORMAL, 0);
hrtimer_cancel(hrtimer);
/* disable the perf event */
Expand Down

0 comments on commit 457b5cb

Please sign in to comment.