projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
phonet: fix rtm_phonet_notify() skb allocation
[linux-2.6-block.git]
/
net
/
phonet
/
pn_netlink.c
diff --git
a/net/phonet/pn_netlink.c
b/net/phonet/pn_netlink.c
index 59aebe29689077bfa77d37516aea4617fe3b8a50..dd4c7e9a634fbe29645107de04a90688cdfb1a01 100644
(file)
--- a/
net/phonet/pn_netlink.c
+++ b/
net/phonet/pn_netlink.c
@@
-193,7
+193,7
@@
void rtm_phonet_notify(int event, struct net_device *dev, u8 dst)
struct sk_buff *skb;
int err = -ENOBUFS;
- skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct
ifaddr
msg)) +
+ skb = nlmsg_new(NLMSG_ALIGN(sizeof(struct
rt
msg)) +
nla_total_size(1) + nla_total_size(4), GFP_KERNEL);
if (skb == NULL)
goto errout;