Message ID | 20200616154311.12314-2-longman@redhat.com |
---|---|
State | Accepted |
Commit | 8982ae527fbef170ef298650c15d55a9ccd33973 |
Headers | show |
Series | [v5,1/2] mm/slab: Use memzero_explicit() in kzfree() | expand |
diff --git a/mm/slab_common.c b/mm/slab_common.c index 9e72ba224175..37d48a56431d 100644 --- a/mm/slab_common.c +++ b/mm/slab_common.c @@ -1726,7 +1726,7 @@ void kzfree(const void *p) if (unlikely(ZERO_OR_NULL_PTR(mem))) return; ks = ksize(mem); - memset(mem, 0, ks); + memzero_explicit(mem, ks); kfree(mem); } EXPORT_SYMBOL(kzfree);