diff options
Diffstat (limited to 'rfs.c')
-rw-r--r-- | rfs.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -32,7 +32,10 @@ void ipc_rfs_nv_read_item(struct ipc_message_info *info) void *rfs_data; int rc; - ipc_client = ((struct ipc_client_object *) ipc_rfs_client->object)->ipc_client; + if(ril_data.ipc_rfs_client == NULL) + return; + + ipc_client = ((struct ipc_client_data *) ril_data.ipc_rfs_client->data)->ipc_client; if(rfs_io == NULL) { LOGE("Error: NULL rfs_io"); @@ -67,7 +70,10 @@ void ipc_rfs_nv_write_item(struct ipc_message_info *info) void *rfs_data; int rc; - ipc_client = ((struct ipc_client_object *) ipc_rfs_client->object)->ipc_client; + if(ril_data.ipc_rfs_client == NULL) + return; + + ipc_client = ((struct ipc_client_data *) ril_data.ipc_rfs_client->data)->ipc_client; if(rfs_io == NULL) { LOGE("Error: NULL rfs_io"); |