aboutsummaryrefslogtreecommitdiff
path: root/include/drm/drm_mem_util.h
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2015-07-01 15:03:07 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2015-07-01 15:03:07 +1000
commit8ebb88a4ef020cd6d9d0086b278f2e784949c28d (patch)
tree68da406ed290e449e7b87583818c37f3c91f8340 /include/drm/drm_mem_util.h
parenta55f854f079722909039c5093901fcd94ee4389d (diff)
parent2ae58571e60d40ed3a4a5887eabb030021de8fb9 (diff)
Merge branch 'akpm/master'
Diffstat (limited to 'include/drm/drm_mem_util.h')
-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