Peter Hurley 7da4b8b737 serial: core: Fix port mutex assert if lockdep disabled
commit 4047b37122d1 ("serial: core: Prevent unsafe uart port access,
part 1") added lockdep assertion for port mutex but fails to check
if debug_locks has disabled lockdep (so lock state is no longer
reliable).

Use lockdep_assert_held() instead, which properly checks lockdep
state as well.

Reported-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-05-03 17:53:20 -07:00
..
2016-05-03 15:59:15 -07:00
2016-05-01 13:22:54 -07:00
2016-05-01 13:22:54 -07:00
2016-05-01 13:22:54 -07:00
2016-04-30 09:26:55 -07:00
2016-04-30 09:26:55 -07:00
2016-03-07 16:11:14 -08:00
2016-04-30 09:26:55 -07:00
2016-02-14 14:36:04 -08:00