Takashi Iwai 23d911
From b791da238992436f6269e8743b3bc23305702674 Mon Sep 17 00:00:00 2001
Takashi Iwai 23d911
From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Takashi Iwai 23d911
Date: Thu, 24 Feb 2022 21:22:17 +0100
Takashi Iwai 23d911
Subject: [PATCH] VMCI: Fix the description of vmci_check_host_caps()
Takashi Iwai 23d911
Git-commit: b791da238992436f6269e8743b3bc23305702674
Takashi Iwai 23d911
Patch-mainline: v5.18-rc1
Takashi Iwai 23d911
References: git-fixes
Takashi Iwai 23d911
Takashi Iwai 23d911
vmci_check_host_caps() doesn't return a bool but an int.
Takashi Iwai 23d911
Fix the description accordingly.
Takashi Iwai 23d911
Takashi Iwai 23d911
Fixes: 782f24453536 ("VMCI: fix error handling path when registering guest driver")
Takashi Iwai 23d911
Acked-by: Vishnu Dasa <vdasa@vmware.com>
Takashi Iwai 23d911
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Takashi Iwai 23d911
Link: https://lore.kernel.org/r/c181bec88aab1145d3868d61b7e52d53923f8206.1645734041.git.christophe.jaillet@wanadoo.fr
Takashi Iwai 23d911
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Takashi Iwai 23d911
Acked-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai 23d911
Takashi Iwai 23d911
---
Takashi Iwai 23d911
 drivers/misc/vmw_vmci/vmci_guest.c | 6 +++---
Takashi Iwai 23d911
 1 file changed, 3 insertions(+), 3 deletions(-)
Takashi Iwai 23d911
Takashi Iwai 23d911
diff --git a/drivers/misc/vmw_vmci/vmci_guest.c b/drivers/misc/vmw_vmci/vmci_guest.c
Takashi Iwai 23d911
index aa61a687b3e2..1a1858742f75 100644
Takashi Iwai 23d911
--- a/drivers/misc/vmw_vmci/vmci_guest.c
Takashi Iwai 23d911
+++ b/drivers/misc/vmw_vmci/vmci_guest.c
Takashi Iwai 23d911
@@ -253,9 +253,9 @@ static void vmci_guest_cid_update(u32 sub_id,
Takashi Iwai 23d911
 
Takashi Iwai 23d911
 /*
Takashi Iwai 23d911
  * Verify that the host supports the hypercalls we need. If it does not,
Takashi Iwai 23d911
- * try to find fallback hypercalls and use those instead.  Returns
Takashi Iwai 23d911
- * true if required hypercalls (or fallback hypercalls) are
Takashi Iwai 23d911
- * supported by the host, false otherwise.
Takashi Iwai 23d911
+ * try to find fallback hypercalls and use those instead.  Returns 0 if
Takashi Iwai 23d911
+ * required hypercalls (or fallback hypercalls) are supported by the host,
Takashi Iwai 23d911
+ * an error code otherwise.
Takashi Iwai 23d911
  */
Takashi Iwai 23d911
 static int vmci_check_host_caps(struct pci_dev *pdev)
Takashi Iwai 23d911
 {
Takashi Iwai 23d911
-- 
Takashi Iwai 23d911
2.31.1
Takashi Iwai 23d911