diff options
author | Pekka Enberg <penberg@kernel.org> | 2015-06-30 14:58:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-30 19:44:58 -0700 |
commit | c859aa83113dcad165d986e66aa21c5b73745f42 (patch) | |
tree | 6c705179b893cfe26873dafc2a215b023f0da431 /ipc/util.c | |
parent | 92ed932d3081e494a6c61d22c093af100a313034 (diff) | |
download | op-kernel-dev-c859aa83113dcad165d986e66aa21c5b73745f42.zip op-kernel-dev-c859aa83113dcad165d986e66aa21c5b73745f42.tar.gz |
ipc/util.c: use kvfree() in ipc_rcu_free()
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>
Diffstat (limited to 'ipc/util.c')
-rw-r--r-- | ipc/util.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -467,10 +467,7 @@ void ipc_rcu_free(struct rcu_head *head) { struct ipc_rcu *p = container_of(head, struct ipc_rcu, rcu); - if (is_vmalloc_addr(p)) - vfree(p); - else - kfree(p); + kvfree(p); } /** |