From c26dec971e91e15adfd6d88d541ae9feb10f741b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 21 Jan 2016 13:28:25 +0000 Subject: x86: fix kernel crash on geode devices (#21667) Signed-off-by: Felix Fietkau SVN-Revision: 48428 --- target/linux/x86/patches-4.4/100-fix_cs5535_clockevt.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 target/linux/x86/patches-4.4/100-fix_cs5535_clockevt.patch (limited to 'target/linux/x86') 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; + } + -- cgit v1.2.3