drm/nouveau/gem: use kvfree() in u_free()
Use kvfree() instead of open-coding it. Signed-off-by: Pekka Enberg <penberg@kernel.org> Cc: David Airlie <airlied@linux.ie> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
15e21cd163
commit
48a20138ab
|
@ -555,10 +555,7 @@ nouveau_gem_pushbuf_validate(struct nouveau_channel *chan,
|
|||
static inline void
|
||||
u_free(void *addr)
|
||||
{
|
||||
if (!is_vmalloc_addr(addr))
|
||||
kfree(addr);
|
||||
else
|
||||
vfree(addr);
|
||||
kvfree(addr);
|
||||
}
|
||||
|
||||
static inline void *
|
||||
|
|
Loading…
Reference in New Issue