summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorPekka Enberg <penberg@kernel.org>2015-06-30 14:59:15 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-30 19:44:59 -0700
commit15e21cd1631e0eca16af545bbdf89e2ffa4cdaee (patch)
tree0fe4230a6cd777c9d948966ed1be60d65276b3aa /include/drm
parentd2fcb5486af754c990f9a11f91195e28ffd4c735 (diff)
downloadtalos-op-linux-15e21cd1631e0eca16af545bbdf89e2ffa4cdaee.tar.gz
talos-op-linux-15e21cd1631e0eca16af545bbdf89e2ffa4cdaee.zip
drm: use kvfree() in drm_free_large()
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>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_mem_util.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/drm/drm_mem_util.h b/include/drm/drm_mem_util.h
index 19a240446fca..e42495ad8136 100644
--- a/include/drm/drm_mem_util.h
+++ b/include/drm/drm_mem_util.h
@@ -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
OpenPOWER on IntegriCloud