diff options
-rw-r--r-- | samsung-ipc/devices/crespo/crespo.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/samsung-ipc/devices/crespo/crespo.c b/samsung-ipc/devices/crespo/crespo.c index ebb6075..27e1dd5 100644 --- a/samsung-ipc/devices/crespo/crespo.c +++ b/samsung-ipc/devices/crespo/crespo.c @@ -553,13 +553,17 @@ int crespo_gprs_deactivate(__attribute__((unused)) struct ipc_client *client, return 0; } -char *crespo_gprs_get_iface_single( - __attribute__((unused)) struct ipc_client *client, - __attribute__((unused)) unsigned int cid) +char *crespo_gprs_get_iface_single(struct ipc_client *client, + __attribute__((unused)) unsigned int cid) { char *iface = NULL; + int rc; - asprintf(&iface, "%s%d", CRESPO_GPRS_IFACE_PREFIX, 0); + rc = asprintf(&iface, "%s%d", CRESPO_GPRS_IFACE_PREFIX, 0); + if (rc == -1) { + ipc_client_log(client, "%s: asprintf failed", __func__); + return NULL; + } return iface; } |