projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18adaf0
)
[RTNETLINK]: Fix typo causing wrong skb to be freed
author
Thomas Graf
<tgraf@suug.ch>
Thu, 31 Aug 2006 22:04:30 +0000
(15:04 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 22 Sep 2006 22:18:43 +0000
(15:18 -0700)
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>
net/core/rtnetlink.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/rtnetlink.c
b/net/core/rtnetlink.c
index 0ebcf8488e994b225a6660a546a1f23e1119e66d..63b882ac288adf525081725d3360b1444a8673ec 100644
(file)
--- 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)
err = rtnl_fill_ifinfo(nskb, dev, iw, iw_buf_len, RTM_NEWLINK,
NETLINK_CB(skb).pid, nlh->nlmsg_seq, 0, 0);
if (err <= 0) {
- kfree_skb(skb);
+ kfree_skb(
n
skb);
goto errout;
}