summaryrefslogtreecommitdiffstats
path: root/rfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfs.c')
-rw-r--r--rfs.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/rfs.c b/rfs.c
index 2e0c9c0..7f30bed 100644
--- a/rfs.c
+++ b/rfs.c
@@ -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");