aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-21 13:28:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-21 13:28:25 +0000
commitce0c7e23c2a0b9b423d10de713564f46dfeef981 (patch)
tree328008dc690636102ba2716a292bbbc20fc26661 /target/linux/x86
parent1463c79bc7a89eddd1c45c2f9fde8660f20eaee9 (diff)
downloadmaster-187ad058-ce0c7e23c2a0b9b423d10de713564f46dfeef981.tar.gz
master-187ad058-ce0c7e23c2a0b9b423d10de713564f46dfeef981.tar.bz2
master-187ad058-ce0c7e23c2a0b9b423d10de713564f46dfeef981.zip
x86: fix kernel crash on geode devices (#21667)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48428 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/x86')
-rw-r--r--target/linux/x86/patches-4.4/100-fix_cs5535_clockevt.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/x86/patches-4.4/100-fix_cs5535_clockevt.patch b/target/linux/x86/patches-4.4/100-fix_cs5535_clockevt.patch
new file mode 100644
index 0000000000..c49ddca7d6
--- /dev/null
+++ b/target/linux/x86/patches-4.4/100-fix_cs5535_clockevt.patch
@@ -0,0 +1,12 @@
+--- a/drivers/clocksource/cs5535-clockevt.c
++++ b/drivers/clocksource/cs5535-clockevt.c
+@@ -129,7 +129,8 @@ static irqreturn_t mfgpt_tick(int irq, v
+ cs5535_mfgpt_write(cs5535_event_clock, MFGPT_REG_SETUP,
+ MFGPT_SETUP_CNTEN | MFGPT_SETUP_CMP2);
+
+- cs5535_clockevent.event_handler(&cs5535_clockevent);
++ if (cs5535_clockevent.event_handler)
++ cs5535_clockevent.event_handler(&cs5535_clockevent);
+ return IRQ_HANDLED;
+ }
+