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
bbc6b732
Commit
bbc6b732
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] Correct kmalloc check: drivers_scsi_dpt_i2o.c
From: Pablo Menichini <pablo@menichini.com.ar>
parent
59265656
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/scsi/dpt_i2o.c
drivers/scsi/dpt_i2o.c
+1
-1
No files found.
drivers/scsi/dpt_i2o.c
View file @
bbc6b732
...
@@ -1491,7 +1491,7 @@ static int adpt_i2o_parse_lct(adpt_hba* pHba)
...
@@ -1491,7 +1491,7 @@ static int adpt_i2o_parse_lct(adpt_hba* pHba)
pDev
->
next_lun
;
pDev
=
pDev
->
next_lun
){
pDev
->
next_lun
;
pDev
=
pDev
->
next_lun
){
}
}
pDev
->
next_lun
=
kmalloc
(
sizeof
(
struct
adpt_device
),
GFP_KERNEL
);
pDev
->
next_lun
=
kmalloc
(
sizeof
(
struct
adpt_device
),
GFP_KERNEL
);
if
(
pDev
==
NULL
)
{
if
(
pDev
->
next_lun
==
NULL
)
{
return
-
ENOMEM
;
return
-
ENOMEM
;
}
}
memset
(
pDev
->
next_lun
,
0
,
sizeof
(
struct
adpt_device
));
memset
(
pDev
->
next_lun
,
0
,
sizeof
(
struct
adpt_device
));
...
...
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