blob: assign iovcnt value in spdk_bs_user_op_alloc function

iovcnt value was set to 0 instead of being assigned from
input argument.

Signed-off-by: Maciej Szwed <maciej.szwed@intel.com>
Change-Id: I0f7e89871357f5db9a5a34c801176bc5c7870021

Reviewed-on: https://review.gerrithub.io/395959
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Maciej Szwed 2018-01-23 12:43:19 +01:00 committed by Jim Harris
parent fb12bbecd2
commit 68b8237cdd

View File

@ -493,7 +493,7 @@ spdk_bs_user_op_alloc(struct spdk_io_channel *_channel, struct spdk_bs_cpl *cpl,
args = &set->u.user_op;
args->type = op_type;
args->iovcnt = 0;
args->iovcnt = iovcnt;
args->blob = blob;
args->offset = offset;
args->length = length;