projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "ARCv2: spinlock/rwlock/atomics: Delayed retry of failed SCOND with exponentia...
[cascardo/linux.git]
/
mm
/
slab_common.c
diff --git
a/mm/slab_common.c
b/mm/slab_common.c
index
3239bfd
..
a65dad7
100644
(file)
--- a/
mm/slab_common.c
+++ b/
mm/slab_common.c
@@
-715,6
+715,7
@@
void kmem_cache_destroy(struct kmem_cache *s)
get_online_cpus();
get_online_mems();
get_online_cpus();
get_online_mems();
+ kasan_cache_destroy(s);
mutex_lock(&slab_mutex);
s->refcount--;
mutex_lock(&slab_mutex);
s->refcount--;
@@
-753,6
+754,7
@@
int kmem_cache_shrink(struct kmem_cache *cachep)
get_online_cpus();
get_online_mems();
get_online_cpus();
get_online_mems();
+ kasan_cache_shrink(cachep);
ret = __kmem_cache_shrink(cachep, false);
put_online_mems();
put_online_cpus();
ret = __kmem_cache_shrink(cachep, false);
put_online_mems();
put_online_cpus();