All of lore.kernel.org
 help / color / mirror / Atom feed
From: Quentin Armitage <Quentin@Armitage.org.uk>
To: linux-wireless@vger.kernel.org
Subject: Re: Oops and other problems in cfg80211
Date: Tue, 24 Mar 2009 22:18:39 +0000 (UTC)	[thread overview]
Message-ID: <loom.20090324T220312-187@post.gmane.org> (raw)
In-Reply-To: 43e72e890903191800y7f30a58fheeb1b8f25eb6d7f2@mail.gmail.com

Luis R. Rodriguez <mcgrof@...> writes:

> > If reg_is_world_roaming is modified to check for last_request not being
> > NULL, e.g.
> > if (last_request && last_request->initiator != REGDOM_SET_BY_COUNTRY_IE
> > &&
> > then I also get an oops in reg_device_remove where last_request is
> > referenced and there is only a subsequent check for it being NULL.
Following the commits included in master-2009-03-23, in function
reg_device_remove in net/wireless/reg.c there is still a dereference via
last_request (request_wiphy = wiphy_idx_to_wiphy(last_request->wiphy_idx);)
prior to the test for last_request != NULL (if (!last_request || !request_wiphy)
)
I suspect that following the patches applied, last_request cannot be NULL, and
therefore the check !last_request is not required; otherwise the check needs to
be made before the call to wiphy_idx_to_wiphy.
One way or the other, as it stands the code looks wrong.



  reply	other threads:[~2009-03-24 22:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-16 17:23 Oops and other problems in cfg80211 Quentin Armitage
2009-03-20  1:00 ` Luis R. Rodriguez
2009-03-24 22:18   ` Quentin Armitage [this message]
2009-03-25  1:05     ` Luis R. Rodriguez

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=loom.20090324T220312-187@post.gmane.org \
    --to=quentin@armitage.org.uk \
    --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.