All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stanislaw Gruszka <stf_xl@wp.pl>
To: Tuo Li <islituo@gmail.com>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] wifi: iwlegacy: 3945-rs: add a defensive WARN_ON_ONCE for il_sta in il3945_rs_get_rate()
Date: Fri, 9 Jan 2026 21:42:35 +0100	[thread overview]
Message-ID: <20260109204235.GA48564@wp.pl> (raw)
In-Reply-To: <CADm8Tenw9kpk9suABMEYguURxtWrXRaRAiXogxUfwSash-c0ng@mail.gmail.com>

Hi

On Fri, Jan 09, 2026 at 11:12:55PM +0800, Tuo Li wrote:
> > Sorry for giving you wrong advice before, but after examining related code
> > I agree with Johannes the il_sta can not be NULL.
> > Now, I think we should just remove il_sta/rs_sta pointer check.
> >
> > Regards
> > Stanislaw
> 
> Thanks for the follow-up and your patience. I appreciate you taking
> another look at the code.
> 
> Just to confirm, would you like me to submit a v4 patch that removes the
> unnecessary il_sta / rs_sta checks, e.g.:
> 
> in il3945_rs_get_rate():
> 
> - if (rs_sta && !rs_sta->il) {
> + if (!rs_sta->il) {
> 
> and in il3945_rs_tx_status():
> 
> - if (!il_sta) {
> -     D_RATE("leave: No STA il data to update!\n");
> -     return;
> - }

Yes, please post those changes as v4.

Thanks
Stanislaw

  reply	other threads:[~2026-01-09 20:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-09  3:40 [PATCH v3] wifi: iwlegacy: 3945-rs: add a defensive WARN_ON_ONCE for il_sta in il3945_rs_get_rate() Tuo Li
2026-01-09  9:02 ` Stanislaw Gruszka
2026-01-09 15:12   ` Tuo Li
2026-01-09 20:42     ` Stanislaw Gruszka [this message]
2026-01-10 13:49       ` Tuo Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260109204235.GA48564@wp.pl \
    --to=stf_xl@wp.pl \
    --cc=islituo@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.