crypto: fix sw async crypto with chained buffers 32/32732/3
authorBenoît Ganne <bganne@cisco.com>
Mon, 14 Jun 2021 15:19:46 +0000 (17:19 +0200)
committerFan Zhang <roy.fan.zhang@intel.com>
Fri, 2 Jul 2021 09:21:20 +0000 (09:21 +0000)
commitecadf6a5395968092e093f7fa1d40a17762ebac1
tree3135d402c1732843f43a8940ce185bff6c553574
parente40e7542a9fbafd96dac823e7005ec4fb96b6b87
crypto: fix sw async crypto with chained buffers

When a buffer in the chain comes with a negative current_data offset,
the conversion to sgl will skip it because of resetting offset to 0.
Moreover, crypto_start_offset is relative to the 1st buffer data pointer
so we should not check it against subsequent buffers anyway.

Type: fix

Change-Id: Id177a90bfda242a5372c7e8836cf6668e98c780e
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/crypto_sw_scheduler/main.c