Skip to contentSkip to conversation

Unlock in iTCO_wdt_start when reboot is disabled

PATCH New Roel Kluin 1 participant 1 message Oct 23, 2007 Watchdog device drivers

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 Unlock in iTCO_wdt_start when reboot is disabled

commit 61c31efe4e9c34531666a6c5857ecd19c22228db

Author: Roel Kluin <[email protected]>
Date:   Tue Oct 23 03:08:27 2007 +0200

Unlock in iTCO_wdt_start when reboot is disabled

drivers/watchdog/iTCO_wdt.c +1 -0
index cd5a565..185c093 100644
@@ -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;
 	}