Bug 843958: Support SCO in switch statement; r=qdot r=echou
authorThomas Zimmermann <tzimmermann@mozilla.com>
Tue, 12 Mar 2013 14:27:59 -0700
changeset 124623 8b15e0890b1f75b2caac8d1a821a8790e060f149
parent 124622 2b4945329805968a62812215cd9c47967eacd053
child 124624 838efa504a6b3629ae32edb85c57adf0cc741cbe
push id24427
push useremorley@mozilla.com
push dateWed, 13 Mar 2013 12:28:55 +0000
treeherdermozilla-central@072b936973fe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersqdot, echou
bugs843958
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 843958: Support SCO in switch statement; r=qdot r=echou The fix for bug 843958 makes b2g crash when Bluetooth gets turned on. This patch fixes the affected switch statement.
dom/bluetooth/BluetoothUnixSocketConnector.cpp
--- a/dom/bluetooth/BluetoothUnixSocketConnector.cpp
+++ b/dom/bluetooth/BluetoothUnixSocketConnector.cpp
@@ -80,16 +80,17 @@ BluetoothUnixSocketConnector::SetUp(int 
     lm |= mAuth ? RFCOMM_LM_AUTH : 0;
     lm |= mEncrypt ? RFCOMM_LM_ENCRYPT : 0;
     break;
   case BluetoothSocketType::L2CAP:
     lm |= mAuth ? L2CAP_LM_AUTH : 0;
     lm |= mEncrypt ? L2CAP_LM_ENCRYPT : 0;
     break;
   case BluetoothSocketType::SCO:
+    break;
   default:
     MOZ_NOT_REACHED("Unknown socket type!");
   }
 
   if (lm) {
     if (setsockopt(aFd, SOL_RFCOMM, RFCOMM_LM, &lm, sizeof(lm))) {
       NS_WARNING("setsockopt(RFCOMM_LM) failed, throwing");
       return false;