compress/isal: fix offset check
authorLee Daly <lee.daly@intel.com>
Wed, 1 Aug 2018 13:23:43 +0000 (14:23 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 3 Aug 2018 07:14:24 +0000 (09:14 +0200)
commit7f474b4324e8280b3c4df3ee3c93d79b0f5417b0
tree8d004e3762b043698b92869ba1dee624de94aaf9
parent219ae4a12995e5a8ee5e184655a37dd4ee96bf25
compress/isal: fix offset check

This commit fixes an offset check in decompression which was checking
destination offset size against dst data_len rather than checking
against dst pkt_len as required, to support single and multi-segment
buffers.

Fixes: 788e748d3845 ("compress/isal: support chained mbufs")

Signed-off-by: Lee Daly <lee.daly@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
drivers/compress/isal/isal_compress_pmd.c