Revert "mm: krealloc: consider spare memory for __GFP_ZERO"
This reverts commit 381cd75d35
.
This commit is contained in:
parent
16ded01ec1
commit
564cec67ca
1 changed files with 0 additions and 7 deletions
|
@ -1101,13 +1101,6 @@ static __always_inline void *__do_krealloc(const void *p, size_t new_size,
|
|||
|
||||
/* If the object still fits, repoison it precisely. */
|
||||
if (ks >= new_size) {
|
||||
/* Zero out spare memory. */
|
||||
if (want_init_on_alloc(flags)) {
|
||||
kasan_disable_current();
|
||||
memset((void *)p + new_size, 0, ks - new_size);
|
||||
kasan_enable_current();
|
||||
}
|
||||
|
||||
p = kasan_krealloc((void *)p, new_size, flags);
|
||||
return (void *)p;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue