* [PATCH] isimodem: fix crash in sms driver
@ 2011-02-01 20:37 Pekka.Pessi
2011-02-01 20:47 ` Aki Niemi
0 siblings, 1 reply; 2+ messages in thread
From: Pekka.Pessi @ 2011-02-01 20:37 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 578 bytes --]
From: Pekka Pessi <Pekka.Pessi@nokia.com>
---
drivers/isimodem/sms.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/isimodem/sms.c b/drivers/isimodem/sms.c
index ded7d9c..c2172f7 100644
--- a/drivers/isimodem/sms.c
+++ b/drivers/isimodem/sms.c
@@ -248,7 +248,7 @@ static void isi_sca_query(struct ofono_sms *sms,
1, /* Location, default is 1 */
};
- if (cbd == NULL || sd == NULL)
+ if (cbd == NULL || sd == NULL || sd->sim == NULL)
goto error;
if (g_isi_client_send(sd->sim, msg, sizeof(msg),
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-01 20:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-01 20:37 [PATCH] isimodem: fix crash in sms driver Pekka.Pessi
2011-02-01 20:47 ` Aki Niemi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox