Commit 48a20138 authored by Pekka Enberg's avatar Pekka Enberg Committed by Linus Torvalds

drm/nouveau/gem: use kvfree() in u_free()

Use kvfree() instead of open-coding it.
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
Cc: David Airlie <airlied@linux.ie>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 15e21cd1
...@@ -555,10 +555,7 @@ nouveau_gem_pushbuf_validate(struct nouveau_channel *chan, ...@@ -555,10 +555,7 @@ nouveau_gem_pushbuf_validate(struct nouveau_channel *chan,
static inline void static inline void
u_free(void *addr) u_free(void *addr)
{ {
if (!is_vmalloc_addr(addr)) kvfree(addr);
kfree(addr);
else
vfree(addr);
} }
static inline void * static inline void *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment