ut/dif: fix iov memory over-allocation
Change-Id: I8e285f0944388e8ab6b0f88fc1d962174318855a Signed-off-by: wuzhouhui <wuzhouhui@kingsoft.com> Reviewed-on: https://review.gerrithub.io/c/446041 Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
a55b2109bb
commit
09a7599ebc
@ -361,7 +361,7 @@ dif_disable_sec_512_md_8_single_iov_test(void)
|
||||
{
|
||||
struct iovec iov;
|
||||
|
||||
_iov_alloc_buf(&iov, (512 + 8) * 4);
|
||||
_iov_alloc_buf(&iov, 512 + 8);
|
||||
|
||||
dif_generate_and_verify(&iov, 1, 512 + 8, 8, 1, false, SPDK_DIF_DISABLE, 0, 0, 0, 0);
|
||||
|
||||
@ -373,7 +373,7 @@ dif_sec_512_md_8_prchk_0_single_iov_test(void)
|
||||
{
|
||||
struct iovec iov;
|
||||
|
||||
_iov_alloc_buf(&iov, (512 + 8) * 4);
|
||||
_iov_alloc_buf(&iov, 512 + 8);
|
||||
|
||||
dif_generate_and_verify(&iov, 1, 512 + 8, 8, 1, false, SPDK_DIF_TYPE1, 0, 0, 0, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user