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:
35e608b
)
Fix the crash in CONTROLLER_ERROR event
34/227834/1
author
DoHyun Pyun
<dh79.pyun@samsung.com>
Mon, 16 Mar 2020 23:42:40 +0000
(08:42 +0900)
committer
DoHyun Pyun
<dh79.pyun@samsung.com>
Mon, 16 Mar 2020 23:42:40 +0000
(08:42 +0900)
Change-Id: I859ef4bb74a2d36d3af7dafa6bd68c9506ccdc2b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-oal/oal-adapter-mgr.c
patch
|
blob
|
history
diff --git
a/bt-oal/oal-adapter-mgr.c
b/bt-oal/oal-adapter-mgr.c
index
258a3ea
..
6b66301
100644
(file)
--- a/
bt-oal/oal-adapter-mgr.c
+++ b/
bt-oal/oal-adapter-mgr.c
@@
-1110,10
+1110,15
@@
static void cb_adapter_device_found(int num_properties, bt_property_t *propertie
void cb_controller_error_received(uint8_t error_code)
{
+ uint8_t *event_data;
+
BT_DBG("+");
+ event_data = g_new0(uint8_t, 1);
+ *event_data = error_code;
+
send_event(OAL_EVENT_CONTROLLER_ERROR_RECEIVED,
-
&error_code
, sizeof(uint8_t));
+
(gpointer)event_data
, sizeof(uint8_t));
BT_DBG("-");
}
\ No newline at end of file