]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dp83640: reinforce locking rules.
authorRichard Cochran <richardcochran@gmail.com>
Mon, 25 May 2015 09:55:44 +0000 (11:55 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Jun 2015 18:26:51 +0000 (14:26 -0400)
commitadbea7ba29a526964bd5f5e1186f198f47f540a5
tree4c38fb98454695eb295ce22033b968d3d1259d5d
parent33f099e8721a9a0c8b5640da81f4163bdb78f597
net: dp83640: reinforce locking rules.

[ Upstream commit a935865c828c8cd20501f618c69f659a5b6d6a5f ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/net/phy/dp83640.c