OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b389645
)
kernel/relay.c: use kvfree() in relay_free_page_array()
author
Pekka Enberg
<penberg@kernel.org>
Tue, 30 Jun 2015 21:59:06 +0000
(14:59 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 1 Jul 2015 02:44:59 +0000
(19:44 -0700)
Use kvfree() instead of open-coding it.
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/relay.c
patch
|
blob
|
history
diff --git
a/kernel/relay.c
b/kernel/relay.c
index
e9dbaeb
..
0b4570c
100644
(file)
--- a/
kernel/relay.c
+++ b/
kernel/relay.c
@@
-81,10
+81,7
@@
static struct page **relay_alloc_page_array(unsigned int n_pages)
*/
static void relay_free_page_array(struct page **array)
{
- if (is_vmalloc_addr(array))
- vfree(array);
- else
- kfree(array);
+ kvfree(array);
}
/**