]> git.baikalelectronics.ru Git - kernel.git/commit
net: dp83640: reinforce locking rules.
authorRichard Cochran <richardcochran@gmail.com>
Mon, 25 May 2015 09:55:44 +0000 (11:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 22:21:59 +0000 (18:21 -0400)
commitbed049ede9f36d3bf3c86182305a8ace2971281e
tree3f3527c382a61cb7ab3cfe7d39c30a2d62732667
parentafbee0011da318612420d7a7873e0b452e3d80fb
net: dp83640: reinforce locking rules.

Callers of the ext_write function are supposed to hold a mutex that
protects the state of the dialed page, but one caller was missing the
lock from the very start, and over time the code has been changed
without following the rule.  This patch cleans up the call sites in
violation of the rule.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83640.c