Skip to content

Commit 3afb4e1

Browse files
committed
Merge: s390/pci: Fix zpci_bus_is_isolated_vf() for non-VFs
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/829 JIRA: https://issues.redhat.com/browse/RHEL-88818 commit 8691abd Signed-off-by: Mete Durlu <mdurlu@redhat.com> Approved-by: Steve Best <sbest@redhat.com> Approved-by: Tony Camuso <tcamuso@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Julio Faracco <jfaracco@redhat.com>
2 parents bd9e97e + f4128a7 commit 3afb4e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/s390/pci/pci_bus.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ static bool zpci_bus_is_isolated_vf(struct zpci_bus *zbus, struct zpci_dev *zdev
335335
{
336336
struct pci_dev *pdev;
337337

338+
if (!zdev->vfn)
339+
return false;
340+
338341
pdev = zpci_iov_find_parent_pf(zbus, zdev);
339342
if (!pdev)
340343
return true;

0 commit comments

Comments
 (0)