diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2016-05-03 23:01:51 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-05-04 02:53:20 +0200 |
commit | 7da4b8b7378790dd1e4af1bb7522863127fa1438 (patch) | |
tree | a541a0973b6a7699f0df6749d028a8760560564f /drivers/net/usb/pegasus.c | |
parent | serial: 8250_dw: fix wrong logic in dw8250_check_lcr() (diff) | |
download | linux-7da4b8b7378790dd1e4af1bb7522863127fa1438.tar.xz linux-7da4b8b7378790dd1e4af1bb7522863127fa1438.zip |
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>
Diffstat (limited to 'drivers/net/usb/pegasus.c')
0 files changed, 0 insertions, 0 deletions