common/qat: fix offset greater than first segment
authorTomasz Jozwiak <tomaszx.jozwiak@intel.com>
Thu, 2 Aug 2018 15:09:26 +0000 (17:09 +0200)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 3 Aug 2018 07:14:24 +0000 (09:14 +0200)
commitb30aa8911ce652497fcadf0d5c771a2de9ac21c9
treeba16cd730d92486c8a6ee34cb2bc2cf1d6c3d44c
parent4b57bfec46356f34d000f6d06ee1f3c24ee2e3fd
common/qat: fix offset greater than first segment

This patch fixes sgl filling to handle offset
greater than first sgl segment

Fixes: 1947bd18580b ("compress/qat: support scatter-gather buffers")

Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/common/qat/qat_common.c
drivers/common/qat/qat_common.h
drivers/compress/qat/qat_comp.c
drivers/crypto/qat/qat_sym.c