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
This commit is contained in:
Ed Maste 2019-09-05 15:45:21 +00:00
parent 89b5571e0b
commit aa91d4b3a9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351867

View File

@ -380,7 +380,7 @@ generic_pcie_activate_resource(device_t dev, device_t child, int type,
device_printf(dev,
"Failed to activate %s resource\n",
type == SYS_RES_IOPORT ? "IOPORT" : "MEMORY");
res = 0;
res = ENXIO;
}
break;
case SYS_RES_IRQ: