Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b974179a authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[RTNETLINK]: Fix use of wrong skb in do_getlink()



skb is the netlink query, nskb is the reply message.

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 52c41a32
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -602,7 +602,7 @@ static int rtnl_getlink(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
		goto errout;
		goto errout;
	}
	}


	err = rtnl_unicast(skb, NETLINK_CB(skb).pid);
	err = rtnl_unicast(nskb, NETLINK_CB(skb).pid);
errout:
errout:
	kfree(iw_buf);
	kfree(iw_buf);
	dev_put(dev);
	dev_put(dev);