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
920f9463
Commit
920f9463
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_isdn_i4l_isdn_ppp_ccp.c
From: Pablo Menichini <pablo@menichini.com.ar>
parent
afff95cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
drivers/isdn/i4l/isdn_ppp_ccp.c
drivers/isdn/i4l/isdn_ppp_ccp.c
+2
-0
No files found.
drivers/isdn/i4l/isdn_ppp_ccp.c
View file @
920f9463
...
@@ -241,6 +241,8 @@ ippp_ccp_alloc(void)
...
@@ -241,6 +241,8 @@ ippp_ccp_alloc(void)
struct
ippp_ccp
*
ccp
;
struct
ippp_ccp
*
ccp
;
ccp
=
kmalloc
(
sizeof
(
*
ccp
),
GFP_ATOMIC
);
// FIXME
ccp
=
kmalloc
(
sizeof
(
*
ccp
),
GFP_ATOMIC
);
// FIXME
if
(
!
cpp
)
return
NULL
;
memset
(
ccp
,
0
,
sizeof
(
*
ccp
));
memset
(
ccp
,
0
,
sizeof
(
*
ccp
));
ccp
->
mru
=
1524
;
/* MRU, default 1524 */
ccp
->
mru
=
1524
;
/* MRU, default 1524 */
ccp
->
reset
=
kmalloc
(
sizeof
(
*
ccp
->
reset
),
GFP_ATOMIC
);
// FIXME alloc together?
ccp
->
reset
=
kmalloc
(
sizeof
(
*
ccp
->
reset
),
GFP_ATOMIC
);
// FIXME alloc together?
...
...
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