mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
dm stats: Use kvfree() in dm_kvfree()
Use kvfree() instead of open-coding it. Signed-off-by: Pekka Enberg <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
This commit is contained in:
parent
fba10109a4
commit
0f24b79b52
1 changed files with 1 additions and 4 deletions
|
|
@ -160,10 +160,7 @@ static void dm_kvfree(void *ptr, size_t alloc_size)
|
|||
|
||||
free_shared_memory(alloc_size);
|
||||
|
||||
if (is_vmalloc_addr(ptr))
|
||||
vfree(ptr);
|
||||
else
|
||||
kfree(ptr);
|
||||
kvfree(ptr);
|
||||
}
|
||||
|
||||
static void dm_stat_free(struct rcu_head *head)
|
||||
|
|
|
|||
Loading…
Reference in a new issue