diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-08-31 18:04:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 18:18:43 -0400 |
commit | 3015d5d4e5b15eddea272a697e83391100581932 (patch) | |
tree | fee65f53db7fc175f5a286dd036eae602a14cf8d /net | |
parent | 18adaf067cf013fc2690d3830eba99ff800795b4 (diff) |
[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: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 0ebcf8488e99..63b882ac288a 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -596,7 +596,7 @@ static int rtnl_getlink(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) | |||
596 | err = rtnl_fill_ifinfo(nskb, dev, iw, iw_buf_len, RTM_NEWLINK, | 596 | err = rtnl_fill_ifinfo(nskb, dev, iw, iw_buf_len, RTM_NEWLINK, |
597 | NETLINK_CB(skb).pid, nlh->nlmsg_seq, 0, 0); | 597 | NETLINK_CB(skb).pid, nlh->nlmsg_seq, 0, 0); |
598 | if (err <= 0) { | 598 | if (err <= 0) { |
599 | kfree_skb(skb); | 599 | kfree_skb(nskb); |
600 | goto errout; | 600 | goto errout; |
601 | } | 601 | } |
602 | 602 | ||