> +++ b/net/mac80211/tx.c
> @@ -1814,8 +1814,9 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff 
> *skb,
>                       break;
>               /* fall through */
>       case NL80211_IFTYPE_AP:
> -             if (sdata->vif.type == NL80211_IFTYPE_AP)
> -                     chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf);
> +             if (sdata->vif.type != NL80211_IFTYPE_AP)
> +                     goto fail_rcu;
> +             chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf);

This change is completely wrong.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to