Search Linux Wireless

Re: [PATCH v8 5/5] mac80211: only set CSA beacon when at least one beacon must be transmitted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
> index 5476ad9..a7fad0d 100644
> --- a/net/mac80211/mesh.c
> +++ b/net/mac80211/mesh.c
> @@ -1051,7 +1051,8 @@ int ieee80211_mesh_finish_csa(struct ieee80211_sub_if_data *sdata)
>         /* Remove the CSA and MCSP elements from the beacon */
>         tmp_csa_settings = rcu_dereference(ifmsh->csa);
>         rcu_assign_pointer(ifmsh->csa, NULL);
> -       kfree_rcu(tmp_csa_settings, rcu_head);
> +       if (tmp_csa_settings)
> +               kfree_rcu(tmp_csa_settings, rcu_head);

Yes, this solves the problem of kernel oops.

----
Chun-Yeow
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux