Skip to contentSkip to conversation

gprs: mark context driver as not used when removing active context

PATCH In review Tomasz Gregorek 2 participants 2 messages Jan 20, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gprs: mark context driver as not used when removing active context

From: Tomasz Gregorek <[email protected]>

---
 src/gprs.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
src/gprs.c +2 -0
index 7ef81d5..0661f74 100644
@@ -1679,6 +1679,8 @@ static void gprs_deactivate_for_remove(const struct ofono_error *error,
 
 	gprs_cid_release(gprs, ctx->context.cid);
 	ctx->context.cid = 0;
+	ctx->context_driver->inuse = FALSE;
+	ctx->context_driver = NULL;
 
 	if (gprs->settings) {
 		g_key_file_remove_group(gprs->settings, ctx->key, NULL);
Signature · 1 line
1.7.1
#1 lore raw

Hi Tomasz,

Quoted 2 lines
 src/gprs.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

patch has been applied. Thanks.

Regards

Marcel