]> 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)
commitf362366129b553db4afd315cd5312b72566b50cc
tree49480fdc4359c842f64a480ead42a9531addcc2c
parentcdd073ae009a611a38959b1fa34d8a6eeaba2485
net: dp83640: fix improper double spin locking.

A pair of nested spin locks was introduced in commit 0a7501145
"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