mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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>
This commit is contained in:
committed by
Linus Torvalds
parent
92ed932d30
commit
c859aa8311
@@ -467,10 +467,7 @@ void ipc_rcu_free(struct rcu_head *head)
|
|||||||
{
|
{
|
||||||
struct ipc_rcu *p = container_of(head, struct ipc_rcu, rcu);
|
struct ipc_rcu *p = container_of(head, struct ipc_rcu, rcu);
|
||||||
|
|
||||||
if (is_vmalloc_addr(p))
|
kvfree(p);
|
||||||
vfree(p);
|
|
||||||
else
|
|
||||||
kfree(p);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user