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
91df4d52
Commit
91df4d52
authored
Sep 06, 2002
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Use vunmap rather than vfree in iounmap.
parent
e42e97d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
arch/ppc/mm/pgtable.c
arch/ppc/mm/pgtable.c
+3
-2
No files found.
arch/ppc/mm/pgtable.c
View file @
91df4d52
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include <linux/config.h>
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <linux/vmalloc.h>
#include <linux/init.h>
#include <linux/init.h>
#include <linux/highmem.h>
#include <linux/highmem.h>
...
@@ -202,7 +203,7 @@ __ioremap(unsigned long addr, unsigned long size, unsigned long flags)
...
@@ -202,7 +203,7 @@ __ioremap(unsigned long addr, unsigned long size, unsigned long flags)
err
=
map_page
(
v
+
i
,
p
+
i
,
flags
);
err
=
map_page
(
v
+
i
,
p
+
i
,
flags
);
if
(
err
)
{
if
(
err
)
{
if
(
mem_init_done
)
if
(
mem_init_done
)
v
free
((
void
*
)
v
);
v
unmap
((
void
*
)
v
);
return
NULL
;
return
NULL
;
}
}
...
@@ -219,7 +220,7 @@ void iounmap(void *addr)
...
@@ -219,7 +220,7 @@ void iounmap(void *addr)
if
(
v_mapped_by_bats
((
unsigned
long
)
addr
))
return
;
if
(
v_mapped_by_bats
((
unsigned
long
)
addr
))
return
;
if
(
addr
>
high_memory
&&
(
unsigned
long
)
addr
<
ioremap_bot
)
if
(
addr
>
high_memory
&&
(
unsigned
long
)
addr
<
ioremap_bot
)
v
free
((
void
*
)
(
PAGE_MASK
&
(
unsigned
long
)
addr
));
v
unmap
((
void
*
)
(
PAGE_MASK
&
(
unsigned
long
)
addr
));
}
}
#endif
/* CONFIG_PPC_ISERIES */
#endif
/* CONFIG_PPC_ISERIES */
...
...
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