mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Bug fix: Trap 12 when ugen not present and therefore unattached physical
device removed.
This commit is contained in:
parent
f96f6ae5d8
commit
88cac66373
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44191
1 changed files with 7 additions and 2 deletions
|
@ -456,9 +456,14 @@ uhub_disconnect_port(up)
|
|||
struct softc { /* all softc begin like this */
|
||||
bdevice sc_dev;
|
||||
};
|
||||
struct softc *sc;
|
||||
struct softc *scp;
|
||||
|
||||
struct softc *sc = (struct softc *)dev->softc;
|
||||
struct softc *scp = (struct softc *)up->parent->softc;
|
||||
if (!dev) /* no device driver attached at port */
|
||||
return;
|
||||
|
||||
sc = (struct softc *)dev->softc;
|
||||
scp = (struct softc *)up->parent->softc;
|
||||
|
||||
DPRINTFN(3,("uhub_disconnect_port: up=%p dev=%p port=%d\n",
|
||||
up, dev, up->portno));
|
||||
|
|
Loading…
Reference in a new issue