Blame 0237-bt-host-add-missing-break-statement.patch

cd9d16
From 557393c06af445a23f65667d16d1ff43b5d7ae6d Mon Sep 17 00:00:00 2001
cd9d16
From: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
cd9d16
Date: Thu, 12 Jan 2012 14:17:04 +0000
cd9d16
Subject: [PATCH] bt-host: add missing break statement
cd9d16
MIME-Version: 1.0
cd9d16
Content-Type: text/plain; charset=UTF-8
cd9d16
Content-Transfer-Encoding: 8bit
cd9d16
cd9d16
The switch statement in bt_host_read() is missing a break in one case.
cd9d16
Andrzej Zaborowski <andrew.zaborowski@intel.com> confirmed that this is
cd9d16
not an intentional fall-through.
cd9d16
cd9d16
Reviewed-by: Stefan Weil <sw@weilnetz.de>
cd9d16
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
cd9d16
(cherry picked from commit f7253270fc66a60e4faf639a3c4ce0b352553b24)
cd9d16
cd9d16
Signed-off-by: Andreas Färber <afaerber@suse.de>
cd9d16
---
cd9d16
 bt-host.c | 1 +
cd9d16
 1 file changed, 1 insertion(+)
cd9d16
cd9d16
diff --git a/bt-host.c b/bt-host.c
cd9d16
index 095254d..df59494 100644
cd9d16
--- a/bt-host.c
cd9d16
+++ b/bt-host.c
cd9d16
@@ -130,6 +130,7 @@ static void bt_host_read(void *opaque)
cd9d16
             pktlen = MIN(pkt[2] + 3, s->len);
cd9d16
             s->len -= pktlen;
cd9d16
             pkt += pktlen;
cd9d16
+            break;
cd9d16
 
cd9d16
         default:
cd9d16
         bad_pkt:
cd9d16
-- 
cd9d16
1.7.11.2
cd9d16