All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCHv2] shared/att: Fix boolean check in handle_notify()
Date: Fri, 5 Jun 2015 16:00:06 +0300	[thread overview]
Message-ID: <20150605130004.GA13309@comms> (raw)
In-Reply-To: <20150601101141.GB31534@comms>

ping

On Mon, Jun 01, 2015 at 01:11:43PM +0300, Andrei Emeltchenko wrote:
> ping
> 
> On Fri, May 29, 2015 at 11:53:26AM +0300, Andrei Emeltchenko wrote:
> > From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> > 
> > ext_signed is boolean and shall be checked with logical op.
> > ---
> >  src/shared/att.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/src/shared/att.c b/src/shared/att.c
> > index 053aa47..f9a5817 100644
> > --- a/src/shared/att.c
> > +++ b/src/shared/att.c
> > @@ -733,7 +733,7 @@ static void handle_notify(struct bt_att *att, uint8_t opcode, uint8_t *pdu,
> >  	const struct queue_entry *entry;
> >  	bool found;
> >  
> > -	if (opcode & ATT_OP_SIGNED_MASK & !att->ext_signed) {
> > +	if ((opcode & ATT_OP_SIGNED_MASK) && !att->ext_signed) {
> >  		if (!handle_signed(att, opcode, pdu, pdu_len))
> >  			return;
> >  		pdu_len -= BT_ATT_SIGNATURE_LEN;
> > -- 
> > 2.1.4
> > 
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2015-06-05 13:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-29  8:09 [PATCH] shared/att: Fix boolean check in handle_notify() Andrei Emeltchenko
2015-05-29  8:39 ` Luiz Augusto von Dentz
2015-05-29  8:53   ` [PATCHv2] " Andrei Emeltchenko
2015-06-01 10:11     ` Andrei Emeltchenko
2015-06-05 13:00       ` Andrei Emeltchenko [this message]
2015-06-05 14:41         ` Luiz Augusto von Dentz

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=20150605130004.GA13309@comms \
    --to=andrei.emeltchenko.news@gmail.com \
    --cc=linux-bluetooth@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 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.