• Eliad Peller's avatar
    mac80211: fix vif name tracing · f9ac71bf
    Eliad Peller authored
    If sdata doesn't have a valid dev (e.g. in case of monitor
    vif), the vif_name field was initialized with (a length of)
    some short string, but later was set to a different,
    potentially larger one.
    
    This resulted in out-of-bounds write, which usually
    appeared as garbage in the trace log.
    
    Simply trace sdata->name, as it should always have the
    correct name for both cases.
    Signed-off-by: default avatarEliad Peller <eliadx.peller@intel.com>
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    f9ac71bf
trace.h 41.2 KB