malloc: fix memory element size in case of padding
authorXueming Li <xuemingl@mellanox.com>
Thu, 21 Nov 2019 14:25:02 +0000 (14:25 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 26 Nov 2019 15:24:08 +0000 (16:24 +0100)
commit2808a12cc05375e986ee1c9bb956bad8288c2b5a
tree9edd292d29b0efe06431cddef8740edab19883d9
parent694fd2cb8d10be0deb8bd7d41dee73601f31d415
malloc: fix memory element size in case of padding

This patch fixes wrong inner memory element size when joining two
elements.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/malloc_elem.c