mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 11:20:49 +07:00
watchdog: fix double lock in watchdog_nmi_enable_all
Commit ab992dc38f
("watchdog: Fix merge 'conflict'") has introduced an
obvious deadlock because of a typo. watchdog_proc_mutex should be
unlocked on exit.
Thanks to Miroslav Benes who was staring at the code with me and noticed
this.
Signed-off-by: Michal Hocko <mhocko@suse.cz>
Duh-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
e26081808e
commit
1173ff09b9
@ -621,7 +621,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)
|
||||
|
Loading…
Reference in New Issue
Block a user