mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
powerpc psim: Fix infinite recursion in bus_adjust_resource method
The default case needs to call bus_generic_adjust_resource to pass the
request up the tree, not bus_adjust_resource which will just call this
method again.
Fixes: d7c16b3334
powerpc psim: Use bus_generic_rman_*
This commit is contained in:
parent
68a3ff0411
commit
ccb1b43e20
|
@ -352,7 +352,8 @@ iobus_adjust_resource(device_t bus, device_t child, int type,
|
|||
return (bus_generic_rman_adjust_resource(bus, child, type, r,
|
||||
start, end));
|
||||
case SYS_RES_IRQ:
|
||||
return (bus_adjust_resource(bus, type, r, start, end));
|
||||
return (bus_generic_adjust_resource(bus, child, type, r, start,
|
||||
end));
|
||||
default:
|
||||
return (EINVAL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue