malloc: Use different tag after mremap
commit14652f60a425458ad6e8eefdae6ff4003124b321
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 12 Mar 2021 09:46:15 +0000 (12 09:46 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 26 Mar 2021 11:03:06 +0000 (26 11:03 +0000)
tree585549e5e30c83366c92c17681ad0b69ff2ca78a
parentfaf003ed8de7c1b1b4794ae15c90241825caeea4
malloc: Use different tag after mremap

The comment explained why different tag is used after mremap, but
for that correctly tagged pointer should be passed to tag_new_usable.
Use chunk2mem to get the tag.

Reviewed-by: DJ Delorie <dj@redhat.com>
malloc/malloc.c