Some ril_data members are set here, while others are supposed to be initiated by g_try_new0() in ril_probe(). This is not coherent, so I suggest to either remove these three lines or, move them to ril_probe() and add the initialization of the remaining members. I am assuming here that the following call (ril->modem = g_ril_new()) cannot be done in ril_probe().