mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Only try to delete the resource if we actually got it.
This commit is contained in:
parent
9d4f526475
commit
19f1fe42e6
1 changed files with 3 additions and 2 deletions
|
|
@ -370,10 +370,11 @@ pccard_function_init(struct pccard_function *pf)
|
|||
* from this config entry.
|
||||
*/
|
||||
for (i = 0; i < cfe->num_iospace; i++) {
|
||||
resource_list_delete(rl, SYS_RES_IOPORT, i);
|
||||
if (cfe->iores[i])
|
||||
if (cfe->iores[i]) {
|
||||
resource_list_delete(rl, SYS_RES_IOPORT, i);
|
||||
bus_release_resource(bus, SYS_RES_IOPORT,
|
||||
cfe->iorid[i], cfe->iores[i]);
|
||||
}
|
||||
cfe->iores[i] = NULL;
|
||||
}
|
||||
if (cfe->irqmask && cfe->irqres) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue