Hi Arun,

On 03/11/2011 06:49 AM, [email protected] wrote:
> From: Arun Ravindran <[email protected]>
> 
> ---
>  drivers/isimodem/sms.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 

I applied the patch, however...

> diff --git a/drivers/isimodem/sms.c b/drivers/isimodem/sms.c
> index 957b342..c90c06d 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)

The check for sd == NULL is too late since sd->params is being used up
above for initialization of iov...

>               goto error;
>  
>       bcd = sd->params.sca;

Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to