diff options
author | John Baldwin <jhb@FreeBSD.org> | 2024-02-16 17:40:34 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2024-02-16 17:40:34 +0000 |
commit | 68a3ff041129208ea98a3bd5142061176ab4165e (patch) | |
tree | a15bab3cc78159dc7aa8735f258c1ae566659bd1 | |
parent | 5130b35ef561edf87be53721ed68de7927843fd4 (diff) |
powerpc mpc85xx: 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: 5a7e717fb790 powerpc mpc85xx: Use bus_generic_rman_*
-rw-r--r-- | sys/powerpc/mpc85xx/lbc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/powerpc/mpc85xx/lbc.c b/sys/powerpc/mpc85xx/lbc.c index 7db2d49955a3..151d77739c4a 100644 --- a/sys/powerpc/mpc85xx/lbc.c +++ b/sys/powerpc/mpc85xx/lbc.c @@ -773,7 +773,8 @@ lbc_adjust_resource(device_t dev, device_t child, int type, struct resource *r, return (bus_generic_rman_adjust_resource(dev, child, type, r, start, end)); case SYS_RES_IRQ: - return (bus_adjust_resource(dev, type, r, start, end)); + return (bus_generic_adjust_resource(dev, child, type, r, start, + end)); default: return (EINVAL); } |