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
nexedi
linux
Commits
b3d6125e
Commit
b3d6125e
authored
Jan 13, 2003
by
Rusty Russell
Committed by
Linus Torvalds
Jan 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Handle kmalloc fails: drivers_net_fec.c
From: Pablo Menichini <pablo@menichini.com.ar>
parent
76b88ed1
Changes
1
Show 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)
...
@@ -1646,6 +1646,8 @@ int __init fec_enet_init(struct net_device *dev)
/* Allocate some private information.
/* Allocate some private information.
*/
*/
fep
=
(
struct
fec_enet_private
*
)
kmalloc
(
sizeof
(
*
fep
),
GFP_KERNEL
);
fep
=
(
struct
fec_enet_private
*
)
kmalloc
(
sizeof
(
*
fep
),
GFP_KERNEL
);
if
(
!
fep
)
return
-
ENOMEM
;
memset
(
fep
,
0
,
sizeof
(
*
fep
));
memset
(
fep
,
0
,
sizeof
(
*
fep
));
/* Create an Ethernet device instance.
/* Create an Ethernet device instance.
...
...
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