projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
379f3fa
)
Fixed bt-service crash by validating le_adv_slot
50/215050/2
author
Amit Purwar
<amit.purwar@samsung.com>
Tue, 1 Oct 2019 07:16:13 +0000
(12:46 +0530)
committer
Amit Purwar
<amit.purwar@samsung.com>
Tue, 1 Oct 2019 07:30:32 +0000
(13:00 +0530)
Change-Id: Ic495edc0bfb976d5d3b3a237c15d262048006bc6
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
bt-oal/bluez_hal/src/bt-hal-adapter-le.c
patch
|
blob
|
history
diff --git
a/bt-oal/bluez_hal/src/bt-hal-adapter-le.c
b/bt-oal/bluez_hal/src/bt-hal-adapter-le.c
index
152bca5
..
b7beea6
100644
(file)
--- a/
bt-oal/bluez_hal/src/bt-hal-adapter-le.c
+++ b/
bt-oal/bluez_hal/src/bt-hal-adapter-le.c
@@
-223,6
+223,9
@@
gboolean _bt_hal_is_advertising(void)
{
int i;
+ if (le_adv_slot == NULL)
+ return FALSE;
+
for (i = 0; i < le_feature_info.adv_inst_max; i++) {
if (le_adv_slot[i].is_advertising == TRUE)
return TRUE;