projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2fcb54
)
drm: use kvfree() in drm_free_large()
author
Pekka Enberg
<penberg@kernel.org>
Tue, 30 Jun 2015 21:59:15 +0000
(14:59 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 1 Jul 2015 02:44:59 +0000
(19:44 -0700)
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>
include/drm/drm_mem_util.h
patch
|
blob
|
blame
|
history
diff --git
a/include/drm/drm_mem_util.h
b/include/drm/drm_mem_util.h
index 19a240446fca657e9928e93defa3ead34905ee56..e42495ad813632002d5d313da5351e615240f274 100644
(file)
--- 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