Re: port-sparc64/60428 (NetBSD 11.99.6/sparc64 panics on USB insertion)
Julian Coleman <[email protected]>
| Newsgroups | gmane.os.netbsd.bugs |
|---|---|
| Message-ID | <ak8rG8E-m4yz8Fr3@morava> |
Hi, > Or, better: > > --- src/sys/arch/sparc64/sparc64/autoconf.c > +++ src/sys/arch/sparc64/sparc64/autoconf.c > @@ -1235,6 +1235,8 @@ > * controller's devhandle. Hoist it up one more so > * that busdev points at the controller. > */ > + if (devhandle_type(devhandle) != DEVHANDLE_TYPE_OF) > + return; > busdev = device_parent(busdev); > devhandle = device_handle(busdev); > KASSERT(devhandle_type(devhandle) == DEVHANDLE_TYPE_OF); Before r1.230, we always set ofnode [*], so I wonder if we should continue to do that. We also now have the same KASSERT in the wd case on line 1276, so that needs the same treatment. The one for FC-AL is probably OK, although I would be tempted to change all 3 to plain return for consistency. Regards, Julian [*] https://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sparc64/sparc64/autoconf.c.diff?r1=1.229;r2=1.230;f=h --