diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-11-13 02:02:01 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:22:15 -0500 |
commit | 75356f27ed4f85bd789a822bca3fc5e92e334140 (patch) | |
tree | 5e5c0cc71418af0412817b7f1cd84abf980fc00e /net/decnet/dn_table.c | |
parent | 2404043a665a9f4c748ab81eef29c76b3e443801 (diff) |
[DECNET]: Fix build regressions.
Spotted by Arnaldo.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/dn_table.c')
-rw-r--r-- | net/decnet/dn_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/dn_table.c b/net/decnet/dn_table.c index e74b744254ab..9ce58c24a8d3 100644 --- a/net/decnet/dn_table.c +++ b/net/decnet/dn_table.c | |||
@@ -265,7 +265,7 @@ static int dn_fib_nh_match(struct rtmsg *r, struct nlmsghdr *nlh, struct dn_kern | |||
265 | 265 | ||
266 | static inline size_t dn_fib_nlmsg_size(struct dn_fib_info *fi) | 266 | static inline size_t dn_fib_nlmsg_size(struct dn_fib_info *fi) |
267 | { | 267 | { |
268 | size_t payload = NLMSG_ALIGN(struct rtmsg) | 268 | size_t payload = NLMSG_ALIGN(sizeof(struct rtmsg)) |
269 | + nla_total_size(4) /* RTA_TABLE */ | 269 | + nla_total_size(4) /* RTA_TABLE */ |
270 | + nla_total_size(2) /* RTA_DST */ | 270 | + nla_total_size(2) /* RTA_DST */ |
271 | + nla_total_size(4); /* RTA_PRIORITY */ | 271 | + nla_total_size(4); /* RTA_PRIORITY */ |
@@ -361,7 +361,7 @@ static void dn_rtmsg_fib(int event, struct dn_fib_node *f, int z, u32 tb_id, | |||
361 | u32 pid = req ? req->pid : 0; | 361 | u32 pid = req ? req->pid : 0; |
362 | int err = -ENOBUFS; | 362 | int err = -ENOBUFS; |
363 | 363 | ||
364 | skb = nlmsg_new(dn_fib_nlmsg_size(DN_FIB_INFO(f), GFP_KERNEL)); | 364 | skb = nlmsg_new(dn_fib_nlmsg_size(DN_FIB_INFO(f)), GFP_KERNEL); |
365 | if (skb == NULL) | 365 | if (skb == NULL) |
366 | goto errout; | 366 | goto errout; |
367 | 367 | ||