mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 03:04:01 +08:00
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
|
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 *
|
||||||
|
Loading…
Reference in New Issue
Block a user