]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: disable BHs/preemption in ieee80211_tx_control_port()
authorDenis Kenzior <denkenz@gmail.com>
Tue, 19 Jun 2018 15:39:50 +0000 (10:39 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 29 Jun 2018 07:39:08 +0000 (09:39 +0200)
commit0911de9304acbb3b3389d4e6d765455ffd836867
tree47fd9f02fb27b926a746ba079aed57fc01f38876
parente2d0ece86933351d109b40327156e438c8d68a22
mac80211: disable BHs/preemption in ieee80211_tx_control_port()

On pre-emption enabled kernels the following print was being seen due to
missing local_bh_disable/local_bh_enable calls.  mac80211 assumes that
pre-emption is disabled in the data path.

    BUG: using smp_processor_id() in preemptible [00000000] code: iwd/517
    caller is __ieee80211_subif_start_xmit+0x144/0x210 [mac80211]
    [...]
    Call Trace:
    dump_stack+0x5c/0x80
    check_preemption_disabled.cold.0+0x46/0x51
    __ieee80211_subif_start_xmit+0x144/0x210 [mac80211]

Fixes: d0adae86ce4d ("mac80211: Add support for tx_control_port")
Signed-off-by: Denis Kenzior <denkenz@gmail.com>
[commit message rewrite, fixes tag]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c