diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index abc511537b6a..381ed84baf7c 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -3239,7 +3239,7 @@ static int nvme_check_ctrl_fabric_info(struct nvme_ctrl *ctrl, struct nvme_id_ct if (!ctrl->maxcmd) { dev_err(ctrl->device, "Maximum outstanding commands is 0\n"); - return -EINVAL; + ctrl->maxcmd = 128; } return 0;