[Problem] If remote device is not connected but _bt_le_conn_update is
called, crash happens.
[Cause & Measure] There is no connected device info. But it is
deferenced. This patch checks NULL for connected device info.
[Checking Method] Try to update LE connection parameter to non-connected
BLE device
Change-Id: Id4fe04ff17392585ec544bcd4f22e33ad5906820
_bt_add_le_conn_param_info(address, sender, interval_min, interval_max, 0, 2000);
dev = __bt_get_le_connected_dev_info(address);
+ if (dev == NULL) {
+ ret = BLUETOOTH_ERROR_NOT_CONNECTED;
+ goto fail;
+ }
+
if (g_slist_length(dev->senders) == 1)
goto update;
else {