projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3060962
)
Fix: Obscure crash when GPRS is not supported
author
Denis Kenzior
<denkenz@gmail.com>
Tue, 27 Oct 2009 17:39:20 +0000
(12:39 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Tue, 27 Oct 2009 17:39:20 +0000
(12:39 -0500)
src/gprs.c
patch
|
blob
|
history
diff --git
a/src/gprs.c
b/src/gprs.c
index
d977660
..
5327da2
100644
(file)
--- a/
src/gprs.c
+++ b/
src/gprs.c
@@
-1180,6
+1180,11
@@
static void gprs_remove(struct ofono_atom *atom)
if (gprs == NULL)
return;
+ if (gprs->context_driver) {
+ gprs->context_driver->gprs = NULL;
+ gprs->context_driver = NULL;
+ }
+
if (gprs->driver && gprs->driver->remove)
gprs->driver->remove(gprs);