]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Drivers: hv: Fix bad pointer dereference in hv_get_partition_id
authorNuno Das Neves <nunodasneves@linux.microsoft.com>
Tue, 1 Apr 2025 17:32:17 +0000 (10:32 -0700)
committerWei Liu <wei.liu@kernel.org>
Mon, 7 Apr 2025 05:39:35 +0000 (05:39 +0000)
commit261ffd53cc8e91e6484a3170a1ddf59a16696667
tree64f8bf22d861b773c88a18c0415b27c650e1b885
parent0af2f6be1b4281385b618cb86ad946eded089ac8
Drivers: hv: Fix bad pointer dereference in hv_get_partition_id

'output' is already a pointer to the output argument, it should be
passed directly to hv_do_hypercall() without the '&' operator.

Fixes: e96204e5e96e ("hyperv: Move hv_current_partition_id to arch-generic code")
Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Link: https://lore.kernel.org/r/1743528737-20310-1-git-send-email-nunodasneves@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1743528737-20310-1-git-send-email-nunodasneves@linux.microsoft.com>
drivers/hv/hv_common.c