From: Greg KH <gregkh@linuxfoundation.org>
To: shaojie.dong@isrc.iscas.ac.cn
Cc: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8712: check register_netdev() return value
Date: Sun, 6 Dec 2020 17:03:21 +0100 [thread overview]
Message-ID: <X80AySpyP3fxhRmb@kroah.com> (raw)
In-Reply-To: <20201206155907.7991-1-shaojie.dong@isrc.iscas.ac.cn>
On Sun, Dec 06, 2020 at 11:59:07PM +0800, shaojie.dong@isrc.iscas.ac.cn wrote:
> From: "shaojie.dong" <shaojie.dong@isrc.iscas.ac.cn>
>
> Function register_netdev() can fail, so we should check it's return value
You just check it, you are not doing anything with it, which is just the
same as not checking this.
Please fix this properly.
thanks,
greg k-h
WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: shaojie.dong@isrc.iscas.ac.cn
Cc: devel@driverdev.osuosl.org, florian.c.schilhabel@googlemail.com,
linux-kernel@vger.kernel.org, Larry.Finger@lwfinger.net
Subject: Re: [PATCH] staging: rtl8712: check register_netdev() return value
Date: Sun, 6 Dec 2020 17:03:21 +0100 [thread overview]
Message-ID: <X80AySpyP3fxhRmb@kroah.com> (raw)
In-Reply-To: <20201206155907.7991-1-shaojie.dong@isrc.iscas.ac.cn>
On Sun, Dec 06, 2020 at 11:59:07PM +0800, shaojie.dong@isrc.iscas.ac.cn wrote:
> From: "shaojie.dong" <shaojie.dong@isrc.iscas.ac.cn>
>
> Function register_netdev() can fail, so we should check it's return value
You just check it, you are not doing anything with it, which is just the
same as not checking this.
Please fix this properly.
thanks,
greg k-h
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
next prev parent reply other threads:[~2020-12-06 16:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-06 15:59 [PATCH] staging: rtl8712: check register_netdev() return value shaojie.dong
2020-12-06 15:59 ` shaojie.dong
2020-12-06 16:03 ` Greg KH [this message]
2020-12-06 16:03 ` Greg KH
2020-12-06 17:10 ` kernel test robot
2020-12-06 17:10 ` kernel test robot
2020-12-06 17:10 ` kernel test robot
2020-12-09 15:01 shaojie.dong
2020-12-09 15:01 ` shaojie.dong
2020-12-09 15:13 ` Greg KH
2020-12-09 15:13 ` Greg KH
2020-12-09 17:46 ` Dan Carpenter
2020-12-09 17:46 ` 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=X80AySpyP3fxhRmb@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=Larry.Finger@lwfinger.net \
--cc=devel@driverdev.osuosl.org \
--cc=florian.c.schilhabel@googlemail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=shaojie.dong@isrc.iscas.ac.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 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.