diff options
author | Arun Ravindran <ext-arun.1.ravindran@nokia.com> | 2011-03-11 14:49:55 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-03-11 13:58:25 -0600 |
commit | 8ee5a49fc25d1a66a85edd6ee831832520b79824 (patch) | |
tree | f07774076d28bf3e52af50c57a5645d97eb8a427 /drivers/isimodem | |
parent | f2d3f232f2bde7ae5d0bfe5785f99683c95acedf (diff) |
isimodem: Crash while setting SCA
Diffstat (limited to 'drivers/isimodem')
-rw-r--r-- | 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 957b3420..c90c06dd 100644 --- a/drivers/isimodem/sms.c +++ b/drivers/isimodem/sms.c @@ -292,7 +292,7 @@ static void isi_sca_set(struct ofono_sms *sms, { &sd->params, sizeof(sd->params) }, }; - if (cbd == NULL || sd == NULL) + if (cbd == NULL || sd == NULL || sd->sim == NULL) goto error; bcd = sd->params.sca; |