memif: fix memif_process_desc indexing 45/35645/4
authorMauro Sardara <msardara@cisco.com>
Mon, 14 Mar 2022 20:08:22 +0000 (20:08 +0000)
committerDamjan Marion <dmarion@me.com>
Tue, 15 Mar 2022 08:15:21 +0000 (08:15 +0000)
commitb0f0f8c8dd9d694bfc13652f89b8b577e9c1c708
tree0bbb588659c6250338f25405ef70e17f72b6d61b
parent41a1bbffc6238b0ed52b55f58ba884fe2f26e11f
memif: fix memif_process_desc indexing

The index i was incremented in the wrong place, and the check on the
presence of a next buffer in the chain was actually done for the
next desc_status rather than the current one.

Type: fix

Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I74a64a34fea497900b7969cd96e1aeeb570a1bba
src/plugins/memif/node.c