]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ARM/hw_breakpoint: Fix possible recursive locking for arch_hw_breakpoint_init
authorTony Lindgren <tony@atomide.com>
Fri, 16 Jun 2017 08:22:38 +0000 (01:22 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Jun 2017 10:25:22 +0000 (12:25 +0200)
commit1b3b22507e0d45dedc6a54b26d56e0b8c4d36875
treebbfd57f226e4af8870e597555548d5a62e2961e7
parent57de72125d34f83bfd39615fcc3cc25ca3b9c0ec
ARM/hw_breakpoint: Fix possible recursive locking for arch_hw_breakpoint_init

Recent change to use cpuhp_setup_state_cpuslocked() with commit
fe2a5cd8aa03 ("ARM/hw_breakpoint: Use cpuhp_setup_state_cpuslocked()")
missed to change the related paired cpuhp_remove_state_nocalls_cpuslocked().

Now if arch_hw_breakpoint_init() fails, we get "WARNING: possible recursive
locking detected" on the exit path.

Fixes: fe2a5cd8aa03 ("ARM/hw_breakpoint: Use cpuhp_setup_state_cpuslocked()")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: linux-omap@vger.kernel.org
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Russell King <linux@armlinux.org.uk>
Cc: "Paul E . McKenney" <paulmck@linux.vnet.ibm.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/20170616082238.15553-1-tony@atomide.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/arm/kernel/hw_breakpoint.c