]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ieee80211_rate: missed unlock
authorCyrill Gorcunov <gorcunov@gmail.com>
Thu, 13 Dec 2007 23:52:11 +0000 (15:52 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 17 Dec 2007 22:01:39 +0000 (17:01 -0500)
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_rate.c

index 7254bd6098398e0f408afe8f6eff40922dfe3c71..3260a4a0ecc5e0cd3ce08ad70bc8e5fdb8eb6300 100644 (file)
@@ -33,6 +33,7 @@ int ieee80211_rate_control_register(struct rate_control_ops *ops)
                if (!strcmp(alg->ops->name, ops->name)) {
                        /* don't register an algorithm twice */
                        WARN_ON(1);
+                       mutex_unlock(&rate_ctrl_mutex);
                        return -EALREADY;
                }
        }