diff options
| author | Pekka Enberg <penberg@kernel.org> | 2015-06-30 17:59:15 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-30 22:44:59 -0400 |
| commit | 15e21cd1631e0eca16af545bbdf89e2ffa4cdaee (patch) | |
| tree | 0fe4230a6cd777c9d948966ed1be60d65276b3aa /include/drm | |
| parent | d2fcb5486af754c990f9a11f91195e28ffd4c735 (diff) | |
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.h | 5 |
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) | |||
| 56 | 56 | ||
| 57 | static __inline void drm_free_large(void *ptr) | 57 | static __inline void drm_free_large(void *ptr) |
| 58 | { | 58 | { |
| 59 | if (!is_vmalloc_addr(ptr)) | 59 | kvfree(ptr); |
| 60 | return kfree(ptr); | ||
| 61 | |||
| 62 | vfree(ptr); | ||
| 63 | } | 60 | } |
| 64 | 61 | ||
| 65 | #endif | 62 | #endif |
