]> 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)
commit2461aec2f3aa698b2136b975a8cd67245c3edd27
tree82f1b95dcc29f9a6f9dea655dd5d29962e4ace4c
parentc6392d713d6a00486da9993d0759250cf5caf643
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: 81485403f4ec ("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