Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
75356f27
Commit
75356f27
authored
Nov 12, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DECNET]: Fix build regressions.
Spotted by Arnaldo. Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
2404043a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
net/decnet/dn_rules.c
net/decnet/dn_rules.c
+0
-6
net/decnet/dn_table.c
net/decnet/dn_table.c
+2
-2
No files found.
net/decnet/dn_rules.c
View file @
75356f27
...
...
@@ -241,12 +241,6 @@ static u32 dn_fib_rule_default_pref(void)
return
0
;
}
static
size_t
dn_fib_rule_nlmsg_payload
(
struct
fib_rule
*
rule
)
{
return
nla_total_size
(
2
)
/* dst */
+
nla_total_size
(
2
);
/* src */
}
int
dn_fib_dump_rules
(
struct
sk_buff
*
skb
,
struct
netlink_callback
*
cb
)
{
return
fib_rules_dump
(
skb
,
cb
,
AF_DECnet
);
...
...
net/decnet/dn_table.c
View file @
75356f27
...
...
@@ -265,7 +265,7 @@ static int dn_fib_nh_match(struct rtmsg *r, struct nlmsghdr *nlh, struct dn_kern
static
inline
size_t
dn_fib_nlmsg_size
(
struct
dn_fib_info
*
fi
)
{
size_t
payload
=
NLMSG_ALIGN
(
s
truct
rtmsg
)
size_t
payload
=
NLMSG_ALIGN
(
s
izeof
(
struct
rtmsg
)
)
+
nla_total_size
(
4
)
/* RTA_TABLE */
+
nla_total_size
(
2
)
/* RTA_DST */
+
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,
u32
pid
=
req
?
req
->
pid
:
0
;
int
err
=
-
ENOBUFS
;
skb
=
nlmsg_new
(
dn_fib_nlmsg_size
(
DN_FIB_INFO
(
f
)
,
GFP_KERNEL
)
);
skb
=
nlmsg_new
(
dn_fib_nlmsg_size
(
DN_FIB_INFO
(
f
)
),
GFP_KERNEL
);
if
(
skb
==
NULL
)
goto
errout
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment