From: Andrzej Zaborowski <balrogg@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] bt: Fix the bitmask in event masked check.
Date: Thu, 7 Jun 2012 15:43:10 +0200 [thread overview]
Message-ID: <1339076590-18909-2-git-send-email-balrogg@gmail.com> (raw)
In-Reply-To: <1339076590-18909-1-git-send-email-balrogg@gmail.com>
Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
---
hw/bt-hci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/bt-hci.c b/hw/bt-hci.c
index 8c717f9..48cbbb5 100644
--- a/hw/bt-hci.c
+++ b/hw/bt-hci.c
@@ -442,7 +442,7 @@ static inline uint8_t *bt_hci_event_start(struct bt_hci_s *hci,
}
mask_byte = (evt - 1) >> 3;
- mask = 1 << ((evt - 1) & 3);
+ mask = 1 << ((evt - 1) & 7);
if (mask & bt_event_reserved_mask[mask_byte] & ~hci->event_mask[mask_byte])
return NULL;
--
1.7.4.4
prev parent reply other threads:[~2012-06-07 13:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 13:43 [Qemu-devel] [PATCH] bt: HCI Reset returns a Cmd Complete event Andrzej Zaborowski
2012-06-07 13:43 ` Andrzej Zaborowski [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=1339076590-18909-2-git-send-email-balrogg@gmail.com \
--to=balrogg@gmail.com \
--cc=qemu-devel@nongnu.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).