mac80211: use station mutex in configuration
[pandora-kernel.git] / net / mac80211 / ibss.c
index 0fc9752..fe0e91e 100644 (file)
@@ -995,6 +995,7 @@ int ieee80211_ibss_join(struct ieee80211_sub_if_data *sdata,
                if (!ieee80211_set_channel_type(sdata->local, sdata,
                                               params->channel_type)) {
                        mutex_unlock(&sdata->u.ibss.mtx);
+                       kfree_skb(skb);
                        return -EINVAL;
                }
        }