All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] ath9k: Add channel context worker thread
Date: Fri, 20 Jun 2014 21:02:04 +0300	[thread overview]
Message-ID: <20140620180204.GA12234@mwanda> (raw)

Hello Felix Fietkau,

This is a semi-automatic email about new static checker warnings.

The patch bff117669841: "ath9k: Add channel context worker thread" 
from Jun 11, 2014, leads to the following Smatch complaint:

drivers/net/wireless/ath/ath9k/main.c:323 ath_reset_internal()
	 error: we previously assumed 'hchan' could be null (see line 317)

drivers/net/wireless/ath/ath9k/main.c
   316	
   317		if (hchan) {
                    ^^^^^
Patch introduces a new check for NULL.

   318			spin_lock_bh(&sc->chan_lock);
   319			sc->cur_chandef = sc->cur_chan->chandef;
   320			spin_unlock_bh(&sc->chan_lock);
   321		}
   322	
   323		ath_dbg(common, CONFIG, "Reset to %u MHz, HT40: %d fastcc: %d\n",
   324			hchan->channel, IS_CHAN_HT40(hchan), fastcc);
                        ^^^^^^^^^^^^^^
But the debug code dereferences hchan unconditionally.

   325	

regards,
dan carpenter

             reply	other threads:[~2014-06-20 18:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-20 18:02 Dan Carpenter [this message]
2014-06-21  3:41 ` [ath9k-devel] ath9k: Add channel context worker thread Manoharan, Rajkumar

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=20140620180204.GA12234@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=ath9k-devel@lists.ath9k.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.