From: Russell King Date: Mon, 5 Sep 2011 07:58:29 +0000 (+0100) Subject: NET: am79c961: fix race in link status code X-Git-Tag: v3.1-rc6~10^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1df726ef0a700587a712a3660b2caa8e533c7de9;p=pandora-kernel.git NET: am79c961: fix race in link status code The link status code operates from a timer, and writes the index register without first taking a lock. A well-placed interrupt between writing the index register and reading the data register could change the index register on us, which will return wrong data. Add the necessary lock. Signed-off-by: Russell King --- Reading git-diff-tree failed