compress/zlib: fix error handling
authorAdam Dybkowski <adamx.dybkowski@intel.com>
Wed, 24 Jul 2019 08:42:46 +0000 (10:42 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 26 Jul 2019 12:52:24 +0000 (14:52 +0200)
commitff53baa9cc676249d1c5c514755d77e453a99b51
tree48c33f2541fc6d74802d8c2388963d05813d7367
parent971d89f5116baa1746b33aedb91a11b1e8af2bbd
compress/zlib: fix error handling

Add missing return after setting the error status in case of
invalid flush_flag in the operation.
The issue was found by the coverity scan as the fin_flush variable,
not initialized in such case, was used later in the flow.

Coverity issue: 340859
Fixes: c7b436ec95fd ("compress/zlib: support burst enqueue/dequeue")
Cc: stable@dpdk.org
Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
drivers/compress/zlib/zlib_pmd.c