Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f7c4daed99fba15e4e48df464031f4ac7c32e4c9
Commit:     f7c4daed99fba15e4e48df464031f4ac7c32e4c9
Parent:     05b64b364822863974c0121359b01d7ba0f22205
Author:     Michael Buesch <[EMAIL PROTECTED]>
AuthorDate: Mon Sep 24 18:41:49 2007 +0200
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:54:14 2007 -0700

    [MAC80211]: Check open_count before calling config callback.
    
    Also remove the check for ops->config!=NULL, as it can never be NULL.
    
    Signed-off-by: Michael Buesch <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/mac80211/ieee80211.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c
index 210319f..62877a8 100644
--- a/net/mac80211/ieee80211.c
+++ b/net/mac80211/ieee80211.c
@@ -678,7 +678,7 @@ int ieee80211_hw_config(struct ieee80211_local *local)
               local->hw.conf.phymode);
 #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */
 
-       if (local->ops->config)
+       if (local->open_count)
                ret = local->ops->config(local_to_hw(local), &local->hw.conf);
 
        return ret;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to