summaryrefslogtreecommitdiff
path: root/drivers/hv/channel_mgmt.c
diff options
context:
space:
mode:
authorJuan Vazquez <juvazq@linux.microsoft.com>2022-01-05 22:27:46 +0300
committerWei Liu <wei.liu@kernel.org>2022-01-05 23:39:14 +0300
commit6a27e396ebb149fc47baccc1957a7a9dd70049a7 (patch)
treeb87bba7736f3d450b428612b44e7c7a32434898e /drivers/hv/channel_mgmt.c
parent0bd2fbee9d0b7f801a9c0264d90b1e0d8053f395 (diff)
downloadlinux-6a27e396ebb149fc47baccc1957a7a9dd70049a7.tar.xz
Drivers: hv: vmbus: Initialize request offers message for Isolation VM
Initialize memory of request offers message to be sent to the host so padding or uninitialized fields do not leak guest memory contents. Signed-off-by: Juan Vazquez <juvazq@linux.microsoft.com> Link: https://lore.kernel.org/r/20220105192746.23046-1-juvazq@linux.microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/hv/channel_mgmt.c')
-rw-r--r--drivers/hv/channel_mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c
index 2829575fd9b7..60375879612f 100644
--- a/drivers/hv/channel_mgmt.c
+++ b/drivers/hv/channel_mgmt.c
@@ -1554,7 +1554,7 @@ int vmbus_request_offers(void)
struct vmbus_channel_msginfo *msginfo;
int ret;
- msginfo = kmalloc(sizeof(*msginfo) +
+ msginfo = kzalloc(sizeof(*msginfo) +
sizeof(struct vmbus_channel_message_header),
GFP_KERNEL);
if (!msginfo)