diff options
author | nyan <nyan@FreeBSD.org> | 2004-07-24 15:13:42 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2004-07-24 15:13:42 +0000 |
commit | 20fb34d054e5b29fb1fb627e06ae39d9124bf030 (patch) | |
tree | cfaaed480b7641f1d1d1b9db01c36ddea3e41b12 /sys | |
parent | d9e9fab7f1922544270f63cbabda4b925633ea09 (diff) | |
download | FreeBSD-src-20fb34d054e5b29fb1fb627e06ae39d9124bf030.zip FreeBSD-src-20fb34d054e5b29fb1fb627e06ae39d9124bf030.tar.gz |
Merged from sys/dev/sio/sio.c revision 1.450.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pc98/cbus/sio.c | 3 | ||||
-rw-r--r-- | sys/pc98/pc98/sio.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index 636d753..210e21e 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -785,7 +785,8 @@ siodetach(dev) return (0); } com->gone = TRUE; - ttygone(com->tp); + if (com->tp) + ttygone(com->tp); for (i = 0 ; i < 6; i++) destroy_dev(com->devs[i]); if (com->irqres) { diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c index 636d753..210e21e 100644 --- a/sys/pc98/pc98/sio.c +++ b/sys/pc98/pc98/sio.c @@ -785,7 +785,8 @@ siodetach(dev) return (0); } com->gone = TRUE; - ttygone(com->tp); + if (com->tp) + ttygone(com->tp); for (i = 0 ; i < 6; i++) destroy_dev(com->devs[i]); if (com->irqres) { |