From: Gabor Juhos <juhosg@openwrt.org>
To: Gabor Juhos <juhosg@openwrt.org>
Cc: "John W. Linville" <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org,
Johannes Berg <johannes@sipsolutions.net>,
Christian Lamparter <chunkeey@googlemail.com>
Subject: Re: [PATCH] ath9k: check pdata variable before dereferencing it
Date: Tue, 11 Dec 2012 18:26:46 +0100 [thread overview]
Message-ID: <50C76CD6.1090902@openwrt.org> (raw)
In-Reply-To: <1355246740-12539-1-git-send-email-juhosg@openwrt.org>
2012.12.11. 18:25 keltezéssel, Gabor Juhos írta:
> Due to my recent commit (ath9k: allow to load EEPROM
> content via firmware API) smatch complains about that
> the 'pdata' variable in 'ath9k_hw_init' can be NULL
> and it is dereferenced before checking that. That is
> absolutely correct.
>
> Check the 'pdata' variable before using it to avoid
> a NULL pointer dereference.
Oops, sent an old patch again instead of the rt2x00 one. Sorry.
-Gabor
next prev parent reply other threads:[~2012-12-11 17:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-11 17:25 [PATCH] ath9k: check pdata variable before dereferencing it Gabor Juhos
2012-12-11 17:26 ` Gabor Juhos [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-12-10 23:06 Gabor Juhos
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=50C76CD6.1090902@openwrt.org \
--to=juhosg@openwrt.org \
--cc=chunkeey@googlemail.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).