llvm_nvme_fuzz: set a zero value in FUSE field
When we use Fuzzer 0 to do random testing of admin commands, it's should be a normal one, instead of Fused operation. Change-Id: I652a725798e79842866be01119be817c965fcee7 Signed-off-by: Yifan Bian <yifan.bian@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12421 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
3c2d18ce58
commit
25aa27b9d1
@ -80,6 +80,9 @@ fuzz_admin_command(struct fuzz_command *cmd)
|
|||||||
if (cmd->cmd.opc == SPDK_NVME_OPC_FABRIC) {
|
if (cmd->cmd.opc == SPDK_NVME_OPC_FABRIC) {
|
||||||
cmd->cmd.opc = SPDK_NVME_OPC_SET_FEATURES;
|
cmd->cmd.opc = SPDK_NVME_OPC_SET_FEATURES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fuzz a normal operation, so set a zero value in Fused field. */
|
||||||
|
cmd->cmd.fuse = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user