bus/pci: clear undefined bits in Windows segment parsing
authorTal Shnaiderman <talshn@nvidia.com>
Wed, 14 Oct 2020 19:30:01 +0000 (22:30 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 16 Oct 2020 12:41:32 +0000 (14:41 +0200)
commitc12b14889e30f1c984b67a64044206aa1a7c704d
tree3ca6a6b79e0b6bebc76746001627bcdd13c07dc4
parent4ffc2276e20b80d019d2190f35f4b6093bed6554
bus/pci: clear undefined bits in Windows segment parsing

When reading bus and segment values using SPDRP_BUSNUMBER
bits 24-31 are undefined.

They are cleared to verify we read the segment number correctly.

Fixes: c3adf8144a17 ("bus/pci: support segment as address domain on Windows")
Cc: stable@dpdk.org
Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
Acked-by: Narcisa Vasile <navasile@linux.microsoft.com>
drivers/bus/pci/windows/pci.c