diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/audit_watch.c | 4 | ||||
| -rw-r--r-- | kernel/time/timekeeping.c | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c index 6bf2306be7d6..f0c9b2e7542d 100644 --- a/kernel/audit_watch.c +++ b/kernel/audit_watch.c | |||
| @@ -526,8 +526,8 @@ static int audit_watch_handle_event(struct fsnotify_group *group, | |||
| 526 | BUG_ON(group != audit_watch_group); | 526 | BUG_ON(group != audit_watch_group); |
| 527 | 527 | ||
| 528 | switch (event->data_type) { | 528 | switch (event->data_type) { |
| 529 | case (FSNOTIFY_EVENT_FILE): | 529 | case (FSNOTIFY_EVENT_PATH): |
| 530 | inode = event->file->f_path.dentry->d_inode; | 530 | inode = event->path.dentry->d_inode; |
| 531 | break; | 531 | break; |
| 532 | case (FSNOTIFY_EVENT_INODE): | 532 | case (FSNOTIFY_EVENT_INODE): |
| 533 | inode = event->inode; | 533 | inode = event->inode; |
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index e960d824263f..49010d822f72 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c | |||
| @@ -710,9 +710,10 @@ static cycle_t logarithmic_accumulation(cycle_t offset, int shift) | |||
| 710 | /* Accumulate raw time */ | 710 | /* Accumulate raw time */ |
| 711 | raw_nsecs = timekeeper.raw_interval << shift; | 711 | raw_nsecs = timekeeper.raw_interval << shift; |
| 712 | raw_nsecs += raw_time.tv_nsec; | 712 | raw_nsecs += raw_time.tv_nsec; |
| 713 | while (raw_nsecs >= NSEC_PER_SEC) { | 713 | if (raw_nsecs >= NSEC_PER_SEC) { |
| 714 | raw_nsecs -= NSEC_PER_SEC; | 714 | u64 raw_secs = raw_nsecs; |
| 715 | raw_time.tv_sec++; | 715 | raw_nsecs = do_div(raw_secs, NSEC_PER_SEC); |
| 716 | raw_time.tv_sec += raw_secs; | ||
| 716 | } | 717 | } |
| 717 | raw_time.tv_nsec = raw_nsecs; | 718 | raw_time.tv_nsec = raw_nsecs; |
| 718 | 719 | ||
