From: Vipin Mehta Date: Fri, 17 Sep 2010 16:55:15 +0000 (-0700) Subject: staging: ath6kl: Fixing a race condition during initialization X-Git-Tag: v2.6.37-rc1~60^2~3^2~538 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b906a33e0a459ea4d51c8d243154c6998be2a1d;p=pandora-kernel.git staging: ath6kl: Fixing a race condition during initialization The commit fixes a race condition in the initialization portion of the driver. The problem was observed while testing with the kernel in the staging-next tree. The wait on the ready event is signalled prematurely before setting the arVersion.wlan_ver and arVersion.abi_ver. The code waiting on this semaphore checks for the validity of these values and hence may proceed with an un-updated values of these fields. The wakeup signal is now sent after these values are set. Signed-off-by: Vipin Mehta Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed