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)
commitadbe088f6f8b0b7701fe07f51fe6f2bd602a6665
tree49480fdc4359c842f64a480ead42a9531addcc2c
parenta935865c828c8cd20501f618c69f659a5b6d6a5f
net: dp83640: fix improper double spin locking.

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