projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
295cc8b
)
technology: Do not proceed with tethering if technology is not enabled
author
Tomasz Bursztyka
<tomasz.bursztyka@linux.intel.com>
Fri, 26 Oct 2012 07:33:11 +0000
(10:33 +0300)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Fri, 26 Oct 2012 07:53:38 +0000
(10:53 +0300)
Fixes BMC#25846
src/technology.c
patch
|
blob
|
history
diff --git
a/src/technology.c
b/src/technology.c
index
324a103
..
1ff8fb7
100644
(file)
--- a/
src/technology.c
+++ b/
src/technology.c
@@
-223,6
+223,10
@@
static int set_tethering(struct connman_technology *technology,
technology->driver->set_tethering == NULL)
return -EOPNOTSUPP;
+ __sync_synchronize();
+ if (technology->enabled == FALSE)
+ return -EACCES;
+
bridge = __connman_tethering_get_bridge();
if (bridge == NULL)
return -EOPNOTSUPP;