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

Commit 3015d5d4 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller
Browse files

[RTNETLINK]: Fix typo causing wrong skb to be freed



A typo introduced by myself which leads to freeing the skb
containing the netlink message when it should free the newly
allocated skb for the reply.

Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 18adaf06
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -596,7 +596,7 @@ static int rtnl_getlink(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg)
	err = rtnl_fill_ifinfo(nskb, dev, iw, iw_buf_len, RTM_NEWLINK,
	err = rtnl_fill_ifinfo(nskb, dev, iw, iw_buf_len, RTM_NEWLINK,
			       NETLINK_CB(skb).pid, nlh->nlmsg_seq, 0, 0);
			       NETLINK_CB(skb).pid, nlh->nlmsg_seq, 0, 0);
	if (err <= 0) {
	if (err <= 0) {
		kfree_skb(skb);
		kfree_skb(nskb);
		goto errout;
		goto errout;
	}
	}