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
dead19d8
Commit
dead19d8
authored
Oct 07, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Missing kmalloc check in iphase driver
parent
acef5f85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
drivers/atm/iphase.c
drivers/atm/iphase.c
+4
-0
No files found.
drivers/atm/iphase.c
View file @
dead19d8
...
@@ -2001,6 +2001,10 @@ static int tx_init(struct atm_dev *dev)
...
@@ -2001,6 +2001,10 @@ static int tx_init(struct atm_dev *dev)
}
}
iadev
->
desc_tbl
=
kmalloc
(
iadev
->
num_tx_desc
*
iadev
->
desc_tbl
=
kmalloc
(
iadev
->
num_tx_desc
*
sizeof
(
struct
desc_tbl_t
),
GFP_KERNEL
);
sizeof
(
struct
desc_tbl_t
),
GFP_KERNEL
);
if
(
!
iadev
->
desc_tbl
)
{
printk
(
KERN_ERR
DEV_LABEL
" couldn't get mem
\n
"
);
return
-
EAGAIN
;
}
/* Communication Queues base address */
/* Communication Queues base address */
i
=
TX_COMP_Q
*
iadev
->
memSize
;
i
=
TX_COMP_Q
*
iadev
->
memSize
;
...
...
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