commit | 1df726ef0a700587a712a3660b2caa8e533c7de9 | [log] [tgz] |
---|---|---|
author | Russell King <rmk+kernel@arm.linux.org.uk> | Mon Sep 05 08:58:29 2011 +0100 |
committer | Russell King <rmk+kernel@arm.linux.org.uk> | Mon Sep 05 08:58:29 2011 +0100 |
tree | 02086e08de0cb385a332833bdc14b7c12c92b50a | |
parent | fb492c9160f3d40d09456a79cc669fba74d7d9cc [diff] |
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 <rmk+kernel@arm.linux.org.uk>