]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Jun 2015 18:26:51 +0000 (14:26 -0400)
commit21efd84e1033d65507096025e3867f7385e95ef5
treef7ec6d59fc92a029233a2591a627a534b5383b77
parentadbea7ba29a526964bd5f5e1186f198f47f540a5
net: dp83640: fix improper double spin locking.

[ Upstream commit adbe088f6f8b0b7701fe07f51fe6f2bd602a6665 ]

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