aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/crespo_ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'samsung-ipc/crespo_ipc.c')
-rw-r--r--samsung-ipc/crespo_ipc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/samsung-ipc/crespo_ipc.c b/samsung-ipc/crespo_ipc.c
index 37209bc..1aaad4a 100644
--- a/samsung-ipc/crespo_ipc.c
+++ b/samsung-ipc/crespo_ipc.c
@@ -260,6 +260,8 @@ boot_loop_start:
printf("crespo_ipc_bootstrap: write nv_data to modem_ctl\n");
nv_data_p = file_read("/efs/nv_data.bin", NV_DATA_SIZE, 1024);
+ if (nv_data_p == NULL)
+ goto error;
data_p = nv_data_p;
lseek(modem_ctl_fd, RADIO_IMG_SIZE, SEEK_SET);