common/cpt: fix component for empty IOV buffer
authorArchana Muniganti <marchana@marvell.com>
Wed, 5 Feb 2020 13:16:17 +0000 (18:46 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 5 Feb 2020 14:29:14 +0000 (15:29 +0100)
commit0022ae1eb8fc4fb6c0115d6516003f3a9442ff00
treeb08fe3c2477e05db0811be2c2159c98fcdac24ad
parente40175c5c56a6a355e022aec106400d25b4f294d
common/cpt: fix component for empty IOV buffer

fill_sg_comp_from_iov() prepares gather components for i/p IOV
buffers and extra buf. This API is failing to create a gather component
for extra_buf when IOV buf len is zero. Though there is enough space
to accommodate extra_buf, because of pre-decrementing of extra_buf
length from aggregate size, this issue is seen.

Fixes: b74652f3a91f ("common/cpt: add microcode interface for encryption")
Cc: stable@dpdk.org
Signed-off-by: Archana Muniganti <marchana@marvell.com>
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
drivers/common/cpt/cpt_ucode.h