• Johannes Berg's avatar
    mac80211: verify info->control.vif is not NULL · a7bc376c
    Johannes Berg authored
    When enqueuing packets on the internal packet queue, we
    need to ensure that we have a valid vif pointer since
    that is required since the net namespace work. Add some
    assertions to verify this, but also don't crash is for
    some reason we don't end up with a vif pointer -- warn
    and drop the packet in all these cases.
    
    Since this code touches a number of hotpaths, it is
    intended to be temporary, or maybe configurable in the
    future, at least the bit that is in the path that gets
    hit for every packet, ieee80211_tx_pending().
    Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    a7bc376c
util.c 27.9 KB