diff --git a/include/drm/drm_mem_util.h b/include/drm/drm_mem_util.h index 19a240446fca657e9928e93defa3ead34905ee56..e42495ad813632002d5d313da5351e615240f274 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