mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Fix definite panic when releasing interrupt resources.
Spotted by: tmm
This commit is contained in:
parent
5e303db539
commit
367a0516d8
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ fhc_release_resource(device_t bus, device_t child, int type, int rid,
|
|||
int error;
|
||||
|
||||
error = bus_generic_release_resource(bus, child, type, rid, r);
|
||||
if (error != 0)
|
||||
if (type != SYS_RES_MEMORY || error != 0)
|
||||
return (error);
|
||||
fdi = device_get_ivars(child);
|
||||
rle = resource_list_find(&fdi->fdi_rl, type, rid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue