Skip to content

Commit

Permalink
drm: use kvfree() in drm_free_large()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
penberg authored and torvalds committed Jul 1, 2015
1 parent d2fcb54 commit 15e21cd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/drm/drm_mem_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 15e21cd

Please sign in to comment.