linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Schmidt <stefan@osg.samsung.com>
To: Alexander Aring <aar@pengutronix.de>, linux-wpan@vger.kernel.org
Cc: linux-bluetooth@vger.kernel.org, kernel@pengutronix.de,
	dan.carpenter@oracle.com
Subject: Re: [PATCH bluetooth-next 2/2] 6lowpan: ndisc: add missing 802.15.4 only check
Date: Wed, 22 Jun 2016 15:36:01 +0200	[thread overview]
Message-ID: <576A9441.5080506@osg.samsung.com> (raw)
In-Reply-To: <20160621082719.9903-2-aar@pengutronix.de>

Hello.

On 21/06/16 10:27, Alexander Aring wrote:
> This patch adds a missing check to handle short address parsing for
> 802.15.4 6LoWPAN only.
>
> Signed-off-by: Alexander Aring <aar@pengutronix.de>
> ---
>   net/6lowpan/ndisc.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/net/6lowpan/ndisc.c b/net/6lowpan/ndisc.c
> index 030504e..79c5fa9 100644
> --- a/net/6lowpan/ndisc.c
> +++ b/net/6lowpan/ndisc.c
> @@ -47,6 +47,9 @@ static int lowpan_ndisc_parse_options(const struct net_device *dev,
>   				      struct nd_opt_hdr *nd_opt,
>   				      struct ndisc_options *ndopts)
>   {
> +	if (!lowpan_is_ll(dev, LOWPAN_LLTYPE_IEEE802154))
> +		return 0;
> +
>   	switch (nd_opt->nd_opt_type) {
>   	case ND_OPT_SOURCE_LL_ADDR:
>   	case ND_OPT_TARGET_LL_ADDR:

Reviewed-by: Stefan Schmidt<stefan@osg.samsung.com> regards Stefan Schmidt



  reply	other threads:[~2016-06-22 13:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-21  8:27 [PATCH bluetooth-next 1/2] 6lowpan: ndisc: fix double read unlock Alexander Aring
2016-06-21  8:27 ` [PATCH bluetooth-next 2/2] 6lowpan: ndisc: add missing 802.15.4 only check Alexander Aring
2016-06-22 13:36   ` Stefan Schmidt [this message]
2016-06-27  6:04   ` Marcel Holtmann
2016-06-22 13:30 ` [PATCH bluetooth-next 1/2] 6lowpan: ndisc: fix double read unlock Stefan Schmidt
2016-06-27  6:03 ` Marcel Holtmann

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=576A9441.5080506@osg.samsung.com \
    --to=stefan@osg.samsung.com \
    --cc=aar@pengutronix.de \
    --cc=dan.carpenter@oracle.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-wpan@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 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).