3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 11:52:34 +01:00

wsc: Reply and clean wsc_sm on netdev removal

This commit is contained in:
Denis Kenzior 2015-10-06 11:39:01 -05:00
parent b81737a7eb
commit 4c0d366fcf

View File

@ -283,6 +283,14 @@ static void wsc_free(void *userdata)
{
struct wsc *wsc = userdata;
if (wsc->pending) {
dbus_pending_reply(&wsc->pending,
dbus_error_not_available(wsc->pending));
wsc_sm_free(wsc->sm);
wsc->sm = NULL;
}
l_free(wsc);
}