PCI: hv: Fix the definition of vector in hv_compose_msi_msg()
authorDexuan Cui <decui@microsoft.com>
Thu, 27 Oct 2022 20:52:56 +0000 (13:52 -0700)
committerWei Liu <wei.liu@kernel.org>
Thu, 3 Nov 2022 15:50:28 +0000 (15:50 +0000)
commite70af8d040d2b7904dca93d942ba23fb722e21b1
tree44e75961a2ff87d352761f9603633ea75f76b12f
parent9539c7fa38d35f869e83d56eb65a0b681644031b
PCI: hv: Fix the definition of vector in hv_compose_msi_msg()

The local variable 'vector' must be u32 rather than u8: see the
struct hv_msi_desc3.

'vector_count' should be u16 rather than u8: see struct hv_msi_desc,
hv_msi_desc2 and hv_msi_desc3.

Fixes: a2bad844a67b ("PCI: hv: Fix interrupt mapping for multi-MSI")
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Cc: Jeffrey Hugo <quic_jhugo@quicinc.com>
Cc: Carl Vanderlip <quic_carlv@quicinc.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://lore.kernel.org/r/20221027205256.17678-1-decui@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/pci/controller/pci-hyperv.c