Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336238
b: refs/heads/master
c: d91fa97
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Dec 6, 2012
1 parent b407dd4 commit 5cd5317
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: 527897ccd968c86ad3265d62962c8beccdb94e47
refs/heads/master: d91fa971285a3ac33b4e8af6cea7c455543e2599
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 5cd5317

Please sign in to comment.