Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15e21cd1 authored by Pekka Enberg's avatar Pekka Enberg Committed by Linus Torvalds
Browse files

drm: use kvfree() in drm_free_large()



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 d2fcb548
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -56,10 +56,7 @@ static __inline__ void *drm_malloc_ab(size_t nmemb, size_t size)

static __inline void drm_free_large(void *ptr)
{
	if (!is_vmalloc_addr(ptr))
		return kfree(ptr);

	vfree(ptr);
	kvfree(ptr);
}

#endif