Skip to content

Commit f25372f

Browse files
yizhanglinuxaxboe
authored andcommitted
nvme: fix the parameter order for nvme_get_log in nvme_get_fw_slot_info
nvme fw-activate operation will get bellow warning log, fix it by update the parameter order [ 113.231513] nvme nvme0: Get FW SLOT INFO log error Fixes: 0e98719 ("nvme: simplify the API for getting log pages") Reported-by: Sujith Pandel <[email protected]> Reviewed-by: David Milburn <[email protected]> Signed-off-by: Yi Zhang <[email protected]> Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent fa46c6f commit f25372f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3867,7 +3867,7 @@ static void nvme_get_fw_slot_info(struct nvme_ctrl *ctrl)
38673867
if (!log)
38683868
return;
38693869

3870-
if (nvme_get_log(ctrl, NVME_NSID_ALL, 0, NVME_LOG_FW_SLOT, log,
3870+
if (nvme_get_log(ctrl, NVME_NSID_ALL, NVME_LOG_FW_SLOT, 0, log,
38713871
sizeof(*log), 0))
38723872
dev_warn(ctrl->device, "Get FW SLOT INFO log error\n");
38733873
kfree(log);

0 commit comments

Comments
 (0)