[patch] watchdog: double lock typo in watchdog_nmi_enable_all()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The mutex_lock() should obviously be mutex_unlock().

Fixes: ab992dc38f9a ('watchdog: Fix merge 'conflict'')
Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
---
This bug is already in mainline.

diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index c57e67d..a6ffa43 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -628,7 +628,7 @@ void watchdog_nmi_enable_all(void)
 	put_online_cpus();
 
 unlock:
-	mutex_lock(&watchdog_proc_mutex);
+	mutex_unlock(&watchdog_proc_mutex);
 }
 
 void watchdog_nmi_disable_all(void)
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux