Skip to content
  • Vipin Mehta's avatar
    staging: ath6kl: Fixing a race condition during initialization · 9b906a33
    Vipin Mehta authored
    
    
    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: default avatarVipin Mehta <vmehta@atheros.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    9b906a33