Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
b3d6125e
Commit
b3d6125e
authored
22 years ago
by
Rusty Russell
Committed by
Linus Torvalds
22 years ago
Browse files
Options
Download
Email Patches
Plain Diff
[PATCH] Handle kmalloc fails: drivers_net_fec.c
From: Pablo Menichini <pablo@menichini.com.ar>
parent
76b88ed1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
drivers/net/fec.c
drivers/net/fec.c
+2
-0
No files found.
drivers/net/fec.c
View file @
b3d6125e
...
...
@@ -1646,6 +1646,8 @@ int __init fec_enet_init(struct net_device *dev)
/* Allocate some private information.
*/
fep
=
(
struct
fec_enet_private
*
)
kmalloc
(
sizeof
(
*
fep
),
GFP_KERNEL
);
if
(
!
fep
)
return
-
ENOMEM
;
memset
(
fep
,
0
,
sizeof
(
*
fep
));
/* Create an Ethernet device instance.
...
...
This diff is collapsed.
Click to expand it.
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