mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-09 19:01:48 +01:00
Revert "platform/wifi: do not double-free nl_msg"
I've applied this without much thinking. Despite applying cleanly it
doesn't do the right thing before nm_auto_nlmsg was introduced.
Whoops.
This reverts commit bc41a9ba75.
This commit is contained in:
parent
783093f04f
commit
66b35bc5a2
1 changed files with 6 additions and 2 deletions
|
|
@ -472,7 +472,8 @@ wifi_nl80211_set_mode (WifiData *data, const NM80211Mode mode)
|
|||
err = nl80211_send_and_recv (nl80211, msg, NULL, NULL);
|
||||
return err ? FALSE : TRUE;
|
||||
|
||||
nla_put_failure:
|
||||
nla_put_failure:
|
||||
nlmsg_free (msg);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
@ -490,6 +491,7 @@ wifi_nl80211_set_powersave (WifiData *data, guint32 powersave)
|
|||
return err ? FALSE : TRUE;
|
||||
|
||||
nla_put_failure:
|
||||
nlmsg_free (msg);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
@ -762,7 +764,8 @@ nl80211_get_ap_info (WifiDataNl80211 *nl80211,
|
|||
|
||||
return;
|
||||
|
||||
nla_put_failure:
|
||||
nla_put_failure:
|
||||
nlmsg_free (msg);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -812,6 +815,7 @@ wifi_nl80211_indicate_addressing_running (WifiData *data, gboolean running)
|
|||
return err ? FALSE : TRUE;
|
||||
|
||||
nla_put_failure:
|
||||
nlmsg_free (msg);
|
||||
return FALSE;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue