Skip to content

Commit

Permalink
ipc/util.c: use kvfree() in ipc_rcu_free()
Browse files Browse the repository at this point in the history
Use kvfree() instead of open-coding it.

Signed-off-by: Pekka Enberg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
penberg authored and torvalds committed Jul 1, 2015
1 parent 92ed932 commit c859aa8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ipc/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit c859aa8

Please sign in to comment.