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
e6b61105
Commit
e6b61105
authored
Nov 21, 2006
by
Arnaldo Carvalho de Melo
Committed by
David S. Miller
Dec 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DECNET]: Use kzalloc where applicable
Signed-off-by:
Arnaldo Carvalho de Melo
<
acme@mandriva.com
>
parent
b1a98bf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
net/decnet/dn_table.c
net/decnet/dn_table.c
+4
-4
No files found.
net/decnet/dn_table.c
View file @
e6b61105
...
...
@@ -831,10 +831,11 @@ struct dn_fib_table *dn_fib_get_table(u32 n, int create)
printk
(
KERN_DEBUG
"DECnet: BUG! Attempt to create routing table from interrupt
\n
"
);
return
NULL
;
}
if
((
t
=
kmalloc
(
sizeof
(
struct
dn_fib_table
)
+
sizeof
(
struct
dn_hash
),
GFP_KERNEL
))
==
NULL
)
return
NULL
;
memset
(
t
,
0
,
sizeof
(
struct
dn_fib_table
));
t
=
kzalloc
(
sizeof
(
struct
dn_fib_table
)
+
sizeof
(
struct
dn_hash
),
GFP_KERNEL
);
if
(
t
==
NULL
)
return
NULL
;
t
->
n
=
n
;
t
->
insert
=
dn_fib_table_insert
;
...
...
@@ -842,7 +843,6 @@ struct dn_fib_table *dn_fib_get_table(u32 n, int create)
t
->
lookup
=
dn_fib_table_lookup
;
t
->
flush
=
dn_fib_table_flush
;
t
->
dump
=
dn_fib_table_dump
;
memset
(
t
->
data
,
0
,
sizeof
(
struct
dn_hash
));
hlist_add_head_rcu
(
&
t
->
hlist
,
&
dn_fib_table_hash
[
h
]);
return
t
;
...
...
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