Re: [PATCH] pci: fix pci_get_pdev() to always account for the segment

2023-05-19 Thread Jan Beulich
On 18.05.2023 12:57, Roger Pau Monne wrote: > When a domain parameter is provided to pci_get_pdev() the search > function would match against the bdf, without taking the segment into > account. > > Fix this and also account for the passed segment. > > Fixes: 8cf6e0738906 ('PCI: simplify (and thus

Re: [PATCH] pci: fix pci_get_pdev() to always account for the segment

2023-05-18 Thread Roger Pau Monné
On Thu, May 18, 2023 at 01:58:34PM +0100, Andrew Cooper wrote: > On 18/05/2023 1:42 pm, Andrew Cooper wrote: > > On 18/05/2023 11:57 am, Roger Pau Monne wrote: > >> When a domain parameter is provided to pci_get_pdev() the search > >> function would match against the bdf, without taking the segment

Re: [PATCH] pci: fix pci_get_pdev() to always account for the segment

2023-05-18 Thread Andrew Cooper
On 18/05/2023 1:42 pm, Andrew Cooper wrote: > On 18/05/2023 11:57 am, Roger Pau Monne wrote: >> When a domain parameter is provided to pci_get_pdev() the search >> function would match against the bdf, without taking the segment into >> account. >> >> Fix this and also account for the passed segmen

Re: [PATCH] pci: fix pci_get_pdev() to always account for the segment

2023-05-18 Thread Andrew Cooper
On 18/05/2023 11:57 am, Roger Pau Monne wrote: > When a domain parameter is provided to pci_get_pdev() the search > function would match against the bdf, without taking the segment into > account. > > Fix this and also account for the passed segment. > > Fixes: 8cf6e0738906 ('PCI: simplify (and thu

Re: [PATCH] pci: fix pci_get_pdev() to always account for the segment

2023-05-18 Thread Roger Pau Monné
On Thu, May 18, 2023 at 12:14:46PM +, Rahul Singh wrote: > Hi Roger, > > > On 18 May 2023, at 11:57 am, Roger Pau Monne wrote: > > > > When a domain parameter is provided to pci_get_pdev() the search > > function would match against the bdf, without taking the segment into > > account. > >

Re: [PATCH] pci: fix pci_get_pdev() to always account for the segment

2023-05-18 Thread Rahul Singh
Hi Roger, > On 18 May 2023, at 11:57 am, Roger Pau Monne wrote: > > When a domain parameter is provided to pci_get_pdev() the search > function would match against the bdf, without taking the segment into > account. > > Fix this and also account for the passed segment. > > Fixes: 8cf6e0738906

[PATCH] pci: fix pci_get_pdev() to always account for the segment

2023-05-18 Thread Roger Pau Monne
When a domain parameter is provided to pci_get_pdev() the search function would match against the bdf, without taking the segment into account. Fix this and also account for the passed segment. Fixes: 8cf6e0738906 ('PCI: simplify (and thus correct) pci_get_pdev{,_by_domain}()') Signed-off-by: Ro