linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Samuel Ortiz <sameo@linux.intel.com>
To: "Elias, Ilan" <ilane@ti.com>
Cc: "Lapuyade, Eric" <eric.lapuyade@intel.com>,
	Linux Wireless <linux-wireless@vger.kernel.org>
Subject: Re: [RFC] [PATCH] NFC: The core part should generate the target index
Date: Thu, 22 Mar 2012 10:32:54 +0100	[thread overview]
Message-ID: <20120322093254.GF3875@sortiz-mobl> (raw)
In-Reply-To: <B30D1FD582D6484ABF57420512E5803516A896FF@DNCE03.ent.ti.com>

Hi Ilan,

On Thu, Mar 22, 2012 at 07:56:27AM +0000, Elias, Ilan wrote:
> Hi Samuel,
>  
> > Ilan, could you please comment on this patch and also make 
> > sure that it
> > doesn't break multiple targets support for NCI ?
> It seems to me that this patch doesn't break multiple targets support for NCI.
Thanks for checking.


> > diff --git a/net/nfc/rawsock.c b/net/nfc/rawsock.c
> > index 5a839ce..47fcf0d 100644
> > --- a/net/nfc/rawsock.c
> > +++ b/net/nfc/rawsock.c
> > @@ -92,6 +92,18 @@ static int rawsock_connect(struct socket 
> > *sock, struct sockaddr *_addr,
> >  		goto error;
> >  	}
> >  
> > +	if (addr->target_idx > dev->target_idx - 1 ||
> > +	    addr->target_idx < dev->target_idx - dev->n_targets) {
> > +		rc = -EINVAL;
> > +		goto error;
> > +	}
> > +
> > +	if (addr->target_idx > dev->target_idx - 1 ||
> > +	    addr->target_idx < dev->target_idx - dev->n_targets) {
> > +		rc = -EINVAL;
> > +		goto error;
> > +	}
> > +
> It looks like the 'if' statement you added appears twice.
Oops, thanks for that one too.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

      reply	other threads:[~2012-03-22  9:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22  0:53 [RFC] [PATCH] NFC: The core part should generate the target index Samuel Ortiz
2012-03-22  7:56 ` Elias, Ilan
2012-03-22  9:32   ` Samuel Ortiz [this message]

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=20120322093254.GF3875@sortiz-mobl \
    --to=sameo@linux.intel.com \
    --cc=eric.lapuyade@intel.com \
    --cc=ilane@ti.com \
    --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 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).