projects
/
openwrt
/
staging
/
blogic.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 e9dbaeb8fd65c7d0af385043cddf2b7d7ef7fa8c..0b4570cfacaeb2f5290d8f4b98d256943d22333c 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);
}
/**