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
dc2d7266
Commit
dc2d7266
authored
Feb 07, 2003
by
Randy Dunlap
Committed by
Greg Kroah-Hartman
Feb 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI Hotplug: memory leaks in acpiphp_glue
Here's the memory leaks patch for acpiphp_glue.c.
parent
13f77785
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
drivers/hotplug/acpiphp_glue.c
drivers/hotplug/acpiphp_glue.c
+5
-0
No files found.
drivers/hotplug/acpiphp_glue.c
View file @
dc2d7266
...
...
@@ -578,6 +578,7 @@ static void add_p2p_bridge (acpi_handle *handle, int seg, int bus, int dev, int
bridge
->
io_head
=
acpiphp_make_resource
((
u64
)
base
,
limit
-
base
+
1
);
if
(
!
bridge
->
io_head
)
{
err
(
"out of memory
\n
"
);
kfree
(
bridge
);
return
;
}
dbg
(
"16bit I/O range: %04x-%04x
\n
"
,
...
...
@@ -592,6 +593,7 @@ static void add_p2p_bridge (acpi_handle *handle, int seg, int bus, int dev, int
bridge
->
io_head
=
acpiphp_make_resource
((
u64
)
base
,
limit
-
base
+
1
);
if
(
!
bridge
->
io_head
)
{
err
(
"out of memory
\n
"
);
kfree
(
bridge
);
return
;
}
dbg
(
"32bit I/O range: %08x-%08x
\n
"
,
...
...
@@ -613,6 +615,7 @@ static void add_p2p_bridge (acpi_handle *handle, int seg, int bus, int dev, int
bridge
->
mem_head
=
acpiphp_make_resource
((
u64
)
base
,
limit
-
base
+
1
);
if
(
!
bridge
->
mem_head
)
{
err
(
"out of memory
\n
"
);
kfree
(
bridge
);
return
;
}
dbg
(
"32bit Memory range: %08x-%08x
\n
"
,
...
...
@@ -632,6 +635,7 @@ static void add_p2p_bridge (acpi_handle *handle, int seg, int bus, int dev, int
bridge
->
p_mem_head
=
acpiphp_make_resource
((
u64
)
base
,
limit
-
base
+
1
);
if
(
!
bridge
->
p_mem_head
)
{
err
(
"out of memory
\n
"
);
kfree
(
bridge
);
return
;
}
dbg
(
"32bit Prefetchable memory range: %08x-%08x
\n
"
,
...
...
@@ -647,6 +651,7 @@ static void add_p2p_bridge (acpi_handle *handle, int seg, int bus, int dev, int
bridge
->
p_mem_head
=
acpiphp_make_resource
(
base64
,
limit64
-
base64
+
1
);
if
(
!
bridge
->
p_mem_head
)
{
err
(
"out of memory
\n
"
);
kfree
(
bridge
);
return
;
}
dbg
(
"64bit Prefetchable memory range: %08x%08x-%08x%08x
\n
"
,
...
...
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