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:
parent
89b5571e0b
commit
aa91d4b3a9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351867
@ -380,7 +380,7 @@ generic_pcie_activate_resource(device_t dev, device_t child, int type,
|
|||||||
device_printf(dev,
|
device_printf(dev,
|
||||||
"Failed to activate %s resource\n",
|
"Failed to activate %s resource\n",
|
||||||
type == SYS_RES_IOPORT ? "IOPORT" : "MEMORY");
|
type == SYS_RES_IOPORT ? "IOPORT" : "MEMORY");
|
||||||
res = 0;
|
res = ENXIO;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SYS_RES_IRQ:
|
case SYS_RES_IRQ:
|
||||||
|
Loading…
Reference in New Issue
Block a user