]> git.baikalelectronics.ru Git - kernel.git/commit
phylink: fix locking asserts
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 15 Dec 2017 16:09:47 +0000 (16:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Dec 2017 19:57:48 +0000 (14:57 -0500)
commit4e8ad827f2402c3924c9d1ecb9a3b0ac9438993d
tree82f1b95dcc29f9a6f9dea655dd5d29962e4ace4c
parenta9182d6124e66317493cf34f38576d188e0b6030
phylink: fix locking asserts

Use ASSERT_RTNL() rather than WARN_ON(!lockdep_rtnl_is_held()) which
stops working when lockdep fires, and we end up with lots of warnings.

Fixes: d3eead77c792 ("phylink: add phylink infrastructure")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c