ofono/drivers
Claudio Takahasi 0772fda92e hfpmodem: Fix segfault in CIEV GAtChat callback
This patch fixes segmentation fault when the network registration
watch is called without being initialized. CIEV GAtChat callback can
be called before ofono_netreg_register().

==15101== Invalid read of size 8
==15101==    at 0x492B56: ofono_netreg_register (network.c:2073)
==15101==    by 0x47245E: hfp_netreg_probe (network-registration.c:311)
==15101==    by 0x492A8D: ofono_netreg_create (network.c:1881)
==15101==    by 0x4849D5: hfp_pre_sim (hfp_hf_bluez5.c:288)
==15101==    by 0x48C486: ofono_modem_set_powered (modem.c:1194)
==15101==    by 0x484E9D: slc_established (hfp_hf_bluez5.c:85)
==15101==    by 0x4702AD: chld_cb (slc.c:147)
==15101==    by 0x440457: at_chat_finish_command (gatchat.c:461)
==15101==    by 0x44109F: new_bytes (gatchat.c:532)
==15101==    by 0x4433B7: received_data (gatio.c:122)
==15101==    by 0x3CBAA47824: g_main_context_dispatch (gmain.c:2539)
==15101==    by 0x3CBAA47B57: g_main_context_iterate.isra.23
(gmain.c:3146)
==15101==  Address 0x18 is not stack'd, malloc'd or (recently) free'd
2013-02-21 17:09:54 -06:00
..
atmodem netreg: Fix broken CMER behavior on MBM 2013-01-21 10:23:34 -06:00
calypsomodem drivers: Update copyright information 2011-10-10 13:39:48 -07:00
cdmamodem cdma-connman: Turn off modem dormancy timeouts 2011-12-09 05:35:48 -06:00
dunmodem dunmodem: Add stub for gprs. 2011-08-03 22:34:04 +02:00
hfpmodem hfpmodem: Fix segfault in CIEV GAtChat callback 2013-02-21 17:09:54 -06:00
hsomodem hsomodem: Remove atom if driver fails to init 2012-03-26 16:50:36 -05:00
huaweimodem huaweimodem: Use network interface from modem for GPRS context 2012-05-26 09:48:25 +02:00
iceramodem iceramodem: Read supported bands as part of radio settings 2012-05-25 20:54:21 +02:00
ifxmodem ifx: Fix the case of modem-originated call 2012-11-28 10:31:15 -06:00
isimodem isi: Update UICC driver to the new API 2012-11-22 10:26:34 -06:00
mbmmodem drivers: Update copyright information 2011-10-10 13:39:48 -07:00
nwmodem nwmodem: Remove atom if driver fails to init 2012-03-26 16:50:59 -05:00
qmimodem sim: Fix whitespace violation 2013-01-15 12:16:08 -06:00
speedupmodem speedup: No need to parse error 2012-04-16 13:15:52 -05:00
stemodem drivers: Update copyright information 2011-10-10 13:39:48 -07:00
swmodem swmodem: Add extra informational AT+CGCONTRDP command 2012-06-25 00:02:17 -07:00
ztemodem ztemodem: Remove atom if driver fails to init 2012-03-26 16:50:11 -05:00