Date: Thu, 5 Sep 2019 15:45:21 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r351867 - head/sys/dev/pci Message-ID: <201909051545.x85FjLRh051432@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Thu Sep 5 15:45:21 2019 New Revision: 351867 URL: https://svnweb.freebsd.org/changeset/base/351867 Log: pcie: return an error if a matching resource is not found Submitted by: markj Reviewed by: manu Event: vBSDCon FreeBSD hackathon Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20884 Modified: head/sys/dev/pci/pci_host_generic.c Modified: head/sys/dev/pci/pci_host_generic.c ============================================================================== --- head/sys/dev/pci/pci_host_generic.c Thu Sep 5 15:35:57 2019 (r351866) +++ head/sys/dev/pci/pci_host_generic.c Thu Sep 5 15:45:21 2019 (r351867) @@ -380,7 +380,7 @@ generic_pcie_activate_resource(device_t dev, device_t device_printf(dev, "Failed to activate %s resource\n", type == SYS_RES_IOPORT ? "IOPORT" : "MEMORY"); - res = 0; + res = ENXIO; } break; case SYS_RES_IRQ:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909051545.x85FjLRh051432>