From patchwork Thu Jun 7 13:43:10 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: bt: Fix the bitmask in event masked check. Date: Thu, 07 Jun 2012 03:43:10 -0000 From: andrzej zaborowski X-Patchwork-Id: 163633 Message-Id: <1339076590-18909-2-git-send-email-balrogg@gmail.com> To: qemu-devel@nongnu.org Signed-off-by: Andrzej Zaborowski --- 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;