Skip to content

Commit f2516cf

Browse files
author
Kelvin Cao
committed
Limit the rsp data length for switchtec_device_manage to 1016
1 parent 2f5b176 commit f2516cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

switchtec-nvme-device.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ struct switchtec_device_manage_nvme_rsp
4545
{
4646
struct switchtec_device_manage_rsp_hdr hdr;
4747
uint32_t nvme_cqe[4];
48-
uint8_t nvme_data[MRPC_MAX_DATA_LEN -
49-
sizeof(struct switchtec_device_manage_rsp_hdr) -
50-
(4 * 4)];
48+
uint8_t nvme_data[SWITCHTEC_DEVICE_MANAGE_MAX_RESP - (4 * 4)];
5149
};
5250

5351
int pax_nvme_submit_admin_passthru(int fd, struct nvme_passthru_cmd *cmd)

0 commit comments

Comments
 (0)