OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a2851f
)
Fix hci_open_dev error check
author
Johan Hedberg
<johan.hedberg@nokia.com>
Tue, 30 Jun 2009 12:59:48 +0000
(15:59 +0300)
committer
Johan Hedberg
<johan.hedberg@nokia.com>
Tue, 30 Jun 2009 12:59:48 +0000
(15:59 +0300)
src/security.c
patch
|
blob
|
history
diff --git
a/src/security.c
b/src/security.c
index
f3beadc
..
49957ca
100644
(file)
--- a/
src/security.c
+++ b/
src/security.c
@@
-117,6
+117,12
@@
static void hci_req_queue_process(int dev_id)
/* send the next pending cmd */
dd = hci_open_dev(dev_id);
+ if (dd < 0) {
+ error("hci_open_dev(%d): %s (%d)", dev_id, strerror(errno),
+ errno);
+ return;
+ }
+
do {
struct hci_req_data *data;
GSList *l = g_slist_find_custom(hci_req_queue, &dev_id, hci_req_find_by_devid);