From: Roel Kluin <12o3l@tiscali.nl> Date: Tue, 23 Oct 2007 01:08:27 +0000 (+0200) Subject: [WATCHDOG] Unlock in iTCO_wdt_start when reboot is disabled X-Git-Tag: v2.6.24-rc2~53^2~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ba7d7b39f3adf3f71aa3acab00111a429056c7d;p=linux-2.6 [WATCHDOG] Unlock in iTCO_wdt_start when reboot is disabled Unlock in iTCO_wdt_start when reboot is disabled Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c index cd5a565bc3..185c093a85 100644 --- a/drivers/watchdog/iTCO_wdt.c +++ b/drivers/watchdog/iTCO_wdt.c @@ -300,6 +300,7 @@ static int iTCO_wdt_start(void) /* disable chipset's NO_REBOOT bit */ if (iTCO_wdt_unset_NO_REBOOT_bit()) { + spin_unlock(&iTCO_wdt_private.io_lock); printk(KERN_ERR PFX "failed to reset NO_REBOOT flag, reboot disabled by hardware\n"); return -EIO; }