Fix Valgrind invalid write error for WiFi plugin
authorLeena Gunda <leena.gunda@wipro.com>
Thu, 6 Jan 2011 05:49:51 +0000 (11:19 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 6 Jan 2011 06:04:39 +0000 (22:04 -0800)
commitb35c5c84316d50a04c23ae09885390a71ff58f8d
treec2aa47a129d8da809370341ef0f7a9c52c8722dc
parent809fcb417e4b3781b31ddf22fe548f14d15fbb36
Fix Valgrind invalid write error for WiFi plugin

g_supplicant_unregister first destroys the interface table and then
invokes system_killed callback which will trigger wifi device driver
removal. wifi_remove will now set it's interface data to NULL but the
GSupplicantInterface has already been freed and hence the issue.

Invoking the system_killed callback before destroying the interface
table in gsupplicant will fix this issue.

Fixes BMC#11684
gsupplicant/supplicant.c