3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

netdev: Fix use of l_genl_msg_unref in netdev_connect

Also drop netdev.associate_msg which is now unused.
This commit is contained in:
Andrew Zaborowski 2016-07-26 14:42:19 +02:00 committed by Denis Kenzior
parent 55f8942d8f
commit 50b5234976

View File

@ -1070,13 +1070,12 @@ int netdev_connect(struct netdev *netdev, struct scan_bss *bss,
return -EISCONN;
cmd_connect = netdev_build_cmd_connect(netdev, bss, sm);
if (!cmd_connect) {
l_genl_msg_unref(cmd_connect);
if (!cmd_connect)
return -EINVAL;
}
if (!l_genl_family_send(nl80211, cmd_connect,
netdev_cmd_connect_cb, netdev, NULL)) {
l_genl_msg_unref(cmd_connect);
return -EIO;
}