Skip to contentSkip to conversation

nvmet: fix typo in pr log enum

PATCH In review Dmitry Bogdanov 2 participants 2 messages Nov 11, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvmet: fix typo in pr log enum

Fixes 1900e1a4495b ("nvme: add reservation command's defines")
---
 drivers/nvme/target/pr.c | 2 +-
 include/linux/nvme.h     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/nvme/target/pr.c +1 -1
index bef82135a0e7..fafea299570a 100644
@@ -201,7 +201,7 @@ static void nvmet_pr_resv_preempted(struct nvmet_pr *pr, uuid_t *hostid)
 		return;
 
 	nvmet_pr_send_event_to_host(pr, hostid,
-		NVME_PR_LOG_RESERVATOPM_PREEMPTED);
+		NVME_PR_LOG_RESERVATION_PREEMPTED);
 }
 
 static void nvmet_pr_registration_preempted(struct nvmet_pr *pr,
include/linux/nvme.h +1 -1
index 7e8e80f3aee1..cee36d24a5f1 100644
@@ -2106,7 +2106,7 @@ enum {
 	NVME_PR_LOG_EMPTY_LOG_PAGE			= 0x00,
 	NVME_PR_LOG_REGISTRATION_PREEMPTED		= 0x01,
 	NVME_PR_LOG_RESERVATION_RELEASED		= 0x02,
-	NVME_PR_LOG_RESERVATOPM_PREEMPTED		= 0x03,
+	NVME_PR_LOG_RESERVATION_PREEMPTED		= 0x03,
 };
 
 enum {
Signature · 1 line
2.25.1