murphyif: Free the connect timer when unloading 60/28360/1
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 3 Oct 2014 13:54:49 +0000 (16:54 +0300)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Fri, 3 Oct 2014 13:59:58 +0000 (16:59 +0300)
commit433421a678a2dbca09640f27c5dc7fc21f25cf26
tree52316f098e500538a0035a5d8831445216fa677d
parent1595dc82f3e7ab5f95bc6eeb37853c886c46d4b9
murphyif: Free the connect timer when unloading

This fixes a crash when unloading module-murphy-ivi. Triggering the
crash probably requires that Murphy isn't running (I haven't tried
with Murphy running). The crash occurs after the module has unloaded,
and the connect timer fires - at that point the timer callback
function has been removed from the memory, so the timer callback
pointer points to invalid memory, causing a segfault when calling the
callback.

Change-Id: I78290f172eff70716491000ef9d4f37822bf3faa
murphy/murphyif.c