projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17d084c
)
skd: Use kmem_cache_free
author
Himanshu Jha
<himanshujha199640@gmail.com>
Sun, 8 Oct 2017 21:30:28 +0000
(
03:00
+0530)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 9 Oct 2017 14:31:27 +0000
(08:31 -0600)
Use kmem_cache_free instead of kfree for freeing the memory previously
allocated with kmem_cache_zalloc/kmem_cache_alloc/kmem_cache_node.
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/skd_main.c
b/drivers/block/skd_main.c
index 7cedb4295e9d325343e296b8b299cb407b7b2a55..64d0fc17c1742ab74aa232da503d08e344b594b2 100644
(file)
--- a/
drivers/block/skd_main.c
+++ b/
drivers/block/skd_main.c
@@
-2604,7
+2604,7
@@
static void *skd_alloc_dma(struct skd_device *skdev, struct kmem_cache *s,
return NULL;
*dma_handle = dma_map_single(dev, buf, s->size, dir);
if (dma_mapping_error(dev, *dma_handle)) {
- k
free(
buf);
+ k
mem_cache_free(s,
buf);
buf = NULL;
}
return buf;