From: Larry Finger <Larry.Finger@lwfinger.net>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: linux-wireless@vger.kernel.org,
"\"troy_tan@realsil.com.cn >> 谭杭波\"" <troy_tan@realsil.com.cn>
Subject: Re: rtlwifi: rtl8192ee: Move driver from staging to the regular tree
Date: Thu, 02 Oct 2014 12:04:17 -0500 [thread overview]
Message-ID: <542D8591.5050807@lwfinger.net> (raw)
In-Reply-To: <20141002091041.GA10993@mwanda>
On 10/02/2014 04:10 AM, Dan Carpenter wrote:
> Hello Larry Finger,
>
> There are still some static checker warnings after this driver moved.
>
> drivers/net/wireless/rtlwifi/rtl8192ee/hw.c:533 rtl92ee_set_hw_reg() warn: add curly braces? (if)
> drivers/net/wireless/rtlwifi/rtl8192ee/hw.c:539 rtl92ee_set_hw_reg() warn: add curly braces? (if)
>
> Some unreleased static checker warnings for rtl are:
>
> drivers/net/wireless/rtlwifi/rtl8723be/trx.c:550 rtl8723be_rx_query_desc() warn: 'hdr' can't be NULL.
> drivers/net/wireless/rtlwifi/rtl8188ee/trx.c:621 rtl88ee_rx_query_desc() warn: 'hdr' can't be NULL.
> drivers/net/wireless/rtlwifi/rtl8192ee/trx.c:567 rtl92ee_rx_query_desc() warn: 'hdr' can't be NULL.
> drivers/net/wireless/rtlwifi/rtl8821ae/trx.c:758 rtl8821ae_rx_query_desc() warn: 'hdr' can't be NULL.
> drivers/net/wireless/rtlwifi/rtl8723ae/trx.c:494 rtl8723e_rx_query_desc() warn: 'hdr' can't be NULL.
> drivers/net/wireless/rtlwifi/rtl8192se/trx.c:315 rtl92se_rx_query_desc() warn: 'hdr' can't be NULL.
> drivers/net/wireless/rtlwifi/rtl8192ce/trx.c:392 rtl92ce_rx_query_desc() warn: 'hdr' can't be NULL.
>
> These bogus null checks were added because:
> drivers/net/wireless/rtlwifi/rtl8192se/trx.c says /* during testing, hdr
> was NULL here */. It is concerning because that means something weird
> is going on when impossible things start happening during testing.
>
> regards,
> dan carpenter
Dan,
Thanks for these warnings. A patch has been submitted.
The first two were due to indenting errors.
As to the bogus checks for null, that same comment was in rtl8192ce. As that was
the first mac80211 driver that Realtek prepared, I suspect that there once was a
bug elsewhere in the code that resulted in a corrupted skb, and the hdr test was
added to keep from crashing. Once that bug was corrected, the hdr test was
forgotten. I do not remember ever seeing that condition being logged, but if
there is another bug somewhere, it will now get attention!
Larry
next prev parent reply other threads:[~2014-10-02 17:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-02 9:10 rtlwifi: rtl8192ee: Move driver from staging to the regular tree Dan Carpenter
2014-10-02 17:04 ` Larry Finger [this message]
2014-10-02 17:06 ` Dan Carpenter
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=542D8591.5050807@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=dan.carpenter@oracle.com \
--cc=linux-wireless@vger.kernel.org \
--cc=troy_tan@realsil.com.cn \
/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).