From e40d6d708fdb209a3a57f12d80ff0f31ea52fa18 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 18 Apr 2011 09:46:20 -0500 Subject: [PATCH] ussd: Fix use of non-cloned gatchat object --- drivers/atmodem/ussd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/atmodem/ussd.c b/drivers/atmodem/ussd.c index f8cde2da..a82b66bc 100644 --- a/drivers/atmodem/ussd.c +++ b/drivers/atmodem/ussd.c @@ -316,10 +316,11 @@ static int at_ussd_probe(struct ofono_ussd *ussd, unsigned int vendor, ofono_ussd_set_data(ussd, data); - g_at_chat_send(chat, "AT+CSCS?", cscs_prefix, read_charset_cb, data, - NULL); + g_at_chat_send(data->chat, "AT+CSCS?", cscs_prefix, + read_charset_cb, data, NULL); - g_at_chat_send(chat, "AT+CUSD=1", NULL, at_ussd_register, ussd, NULL); + g_at_chat_send(data->chat, "AT+CUSD=1", NULL, + at_ussd_register, ussd, NULL); return 0; }