From e8d681f86d6eec160586f87cef2eec54cb0fe063 Mon Sep 17 00:00:00 2001 From: Pekka Pessi Date: Tue, 1 Feb 2011 22:37:09 +0200 Subject: isimodem: fix crash in sms driver --- drivers/isimodem/sms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isimodem/sms.c b/drivers/isimodem/sms.c index 3529b596..957b3420 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), -- cgit v1.2.3