From: blogic Date: Fri, 8 Aug 2008 14:12:04 +0000 (+0000) Subject: fixes kernel oops when reset button was pressed too often on atheros X-Git-Tag: fast2504n-3.10.28-merged~18026 X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=098b7bcc01b0f1ea14607222e104950d26fcd899;p=openwrt.git fixes kernel oops when reset button was pressed too often on atheros git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12245 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/atheros/files/arch/mips/atheros/reset.c b/target/linux/atheros/files/arch/mips/atheros/reset.c index a94954d091..eb525da207 100644 --- a/target/linux/atheros/files/arch/mips/atheros/reset.c +++ b/target/linux/atheros/files/arch/mips/atheros/reset.c @@ -129,10 +129,8 @@ static irqreturn_t button_handler(int irq, void *dev_id) seen = jiffies; if(event->set && no_release_workaround) - { - rst_button_timer.expires = jiffies + (HZ / 4); - add_timer(&rst_button_timer); - } + mod_timer(&rst_button_timer, jiffies + (HZ / 4)); + return IRQ_HANDLED; }