summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ifxmodem/gprs-context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ifxmodem/gprs-context.c b/drivers/ifxmodem/gprs-context.c
index 630e1aa6..4369a240 100644
--- a/drivers/ifxmodem/gprs-context.c
+++ b/drivers/ifxmodem/gprs-context.c
@@ -410,7 +410,7 @@ static int ifx_gprs_context_probe(struct ofono_gprs_context *gc,
if (!g_at_chat_get_slave(chat))
return -EINVAL;
- gcd = g_new0(struct gprs_context_data, 1);
+ gcd = g_try_new0(struct gprs_context_data, 1);
if (!gcd)
return -ENOMEM;