[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1649930477-10651-1-git-send-email-baihaowen@meizu.com>
Date: Thu, 14 Apr 2022 18:01:17 +0800
From: Haowen Bai <baihaowen@...zu.com>
To: unlisted-recipients:; (no To-header on input)
CC: Haowen Bai <baihaowen@...zu.com>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] virt: sevguest: Fix bool function returning negative value
function enc_payload() is bool but return signedness value.
Signed-off-by: Haowen Bai <baihaowen@...zu.com>
---
drivers/virt/coco/sevguest/sevguest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/virt/coco/sevguest/sevguest.c b/drivers/virt/coco/sevguest/sevguest.c
index 15afb6ce8d19..07adf3145d76 100644
--- a/drivers/virt/coco/sevguest/sevguest.c
+++ b/drivers/virt/coco/sevguest/sevguest.c
@@ -276,7 +276,7 @@ static int verify_and_dec_payload(struct snp_guest_dev *snp_dev, void *payload,
return dec_payload(snp_dev, resp, payload, resp_hdr->msg_sz + crypto->a_len);
}
-static bool enc_payload(struct snp_guest_dev *snp_dev, u64 seqno, int version, u8 type,
+static int enc_payload(struct snp_guest_dev *snp_dev, u64 seqno, int version, u8 type,
void *payload, size_t sz)
{
struct snp_guest_msg *req = snp_dev->request;
--
2.7.4
Powered by blists - more mailing lists