wifi: The remove interface callback used stale pointer.
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Fri, 25 Nov 2011 15:06:16 +0000 (17:06 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 28 Nov 2011 16:55:13 +0000 (17:55 +0100)
commit80e2e08b4887c4e133d3ca7d42ac844fbb974bb8
tree24a9368a805c9f9d7e45e3abad69a7ef45a14128
parent88046d99b1f1f59f96bfc00cbd36cafdcab073f1
wifi: The remove interface callback used stale pointer.

When a wlan interface is removed we call proper method in
supplicant dbus interface. As the return message from supplicant
might come very late, we must not use the wifi pointer as
user data in interface remove callback. This is because the wifi
pointer might be removed before the answer comes from supplicant and
the callback user data pointer would not be valid at that point.
plugins/wifi.c