brcm2708: update to v3.18
[openwrt/staging/mkresin.git] / target / linux / brcm2708 / patches-3.18 / 0114-ntp-Patch-to-fix-false-positives-on-32bit-systems.patch
1 From 89d56313537f161a0d9b3888c0f39770cbb994a7 Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Sun, 8 Feb 2015 13:17:00 +0000
4 Subject: [PATCH 114/114] ntp: Patch to fix false positives on 32bit systems
5
6 See: https://bugzilla.kernel.org/show_bug.cgi?id=92481
7 ---
8 kernel/time/ntp.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11 diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c
12 index 28bf91c..242774d 100644
13 --- a/kernel/time/ntp.c
14 +++ b/kernel/time/ntp.c
15 @@ -634,9 +634,9 @@ int ntp_validate_timex(struct timex *txc)
16 return -EPERM;
17
18 if (txc->modes & ADJ_FREQUENCY) {
19 - if (LONG_MIN / PPM_SCALE > txc->freq)
20 + if (LLONG_MIN / PPM_SCALE > txc->freq)
21 return -EINVAL;
22 - if (LONG_MAX / PPM_SCALE < txc->freq)
23 + if (LLONG_MAX / PPM_SCALE < txc->freq)
24 return -EINVAL;
25 }
26
27 --
28 1.8.3.2
29