]> git.baikalelectronics.ru Git - kernel.git/commit
net: dp83640: fix improper double spin locking.
authorRichard Cochran <richardcochran@gmail.com>
Mon, 25 May 2015 09:55:45 +0000 (11:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2015 22:21:59 +0000 (18:21 -0400)
commitb8cc4f7fbf16c89df006cc87680fc94daa1c11e8
tree49480fdc4359c842f64a480ead42a9531addcc2c
parentbed049ede9f36d3bf3c86182305a8ace2971281e
net: dp83640: fix improper double spin locking.

A pair of nested spin locks was introduced in commit 36c3ad82c
"dp83640: Fix receive timestamp race condition".

Unfortunately the 'flags' parameter was reused for the inner lock,
clobbering the originally saved IRQ state.  This patch fixes the issue
by changing the inner lock to plain spin_lock without irqsave.

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