nvme/rdma: change the arg to 0 in nvme_rdma_fabric_prop_get_cmd
The buf is NULL, the size of buffer should be 0. Change-Id: Iba89732ea6abeb65106ae1e158902e1dd9a1204c Signed-off-by: Ziye Yang <ziye.yang@intel.com>
This commit is contained in:
parent
be4f8d0562
commit
10690dedcd
@ -854,8 +854,8 @@ nvme_rdma_fabric_prop_get_cmd(struct spdk_nvme_ctrlr *ctrlr,
|
||||
cmd.attrib.size = size;
|
||||
|
||||
rc = spdk_nvme_ctrlr_cmd_admin_raw(ctrlr, (struct spdk_nvme_cmd *)&cmd,
|
||||
NULL, sizeof(uint32_t),
|
||||
nvme_completion_poll_cb, &status);
|
||||
NULL, 0, nvme_completion_poll_cb,
|
||||
&status);
|
||||
|
||||
if (rc < 0) {
|
||||
SPDK_ERRLOG("failed to send nvme_rdma_fabric_prop_get_cmd\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user