On Fri, 2021-12-03 at 14:04 +0200, Luca Coelho wrote: > From: Johannes Berg <johannes.berg@xxxxxxxxx> > > If we get to the WARN_ONCE(..., "Got a HT rate (...)", ...) > here with a NULL sta, then we crash because mvmsta is bad > and we try to dereference it. Fix that by printing -1 as the > state if no station was given. > > Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> > Fixes: 6761a718263a ("iwlwifi: mvm: add explicit check for non-data frames in get Tx rate") > Signed-off-by: Luca Coelho <luciano.coelho@xxxxxxxxx> > --- Kalle, Can you take this one directly to wireless-drivers? This fixes a kernel crash in some situations. -- Cheers, Luca.