diff options
| author | KATO Takenori <kato@FreeBSD.org> | 1998-06-24 13:37:23 +0000 |
|---|---|---|
| committer | KATO Takenori <kato@FreeBSD.org> | 1998-06-24 13:37:23 +0000 |
| commit | d035c1e702612b09c4dd220939bc6c283a44becf (patch) | |
| tree | 2061812bcd735da9a162cb82066e2e2f9ff9a0e1 /sys | |
| parent | 0d8778c56ebf9da91cbc329d9950694db0b8385f (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/pc98/cbus/sio.c | 10 | ||||
| -rw-r--r-- | sys/pc98/pc98/sio.c | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index f2d1e144ea4e..1e0186a3c19c 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.60 1998/06/08 08:55:45 kato Exp $ + * $Id: sio.c,v 1.61 1998/06/17 09:27:15 kato Exp $ */ #include "opt_comconsole.h" @@ -759,7 +759,15 @@ siounload(struct pccard_devinfo *devi) { struct com_s *com; + if (!devi) { + printf("NULL devi in siounload\n"); + return; + } com = com_addr(devi->isahd.id_unit); + if (!com) { + printf("NULL com in siounload\n"); + return; + } if (!com->iobase) { printf("sio%d already unloaded!\n",devi->isahd.id_unit); return; diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c index f2d1e144ea4e..1e0186a3c19c 100644 --- a/sys/pc98/pc98/sio.c +++ b/sys/pc98/pc98/sio.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)com.c 7.5 (Berkeley) 5/16/91 - * $Id: sio.c,v 1.60 1998/06/08 08:55:45 kato Exp $ + * $Id: sio.c,v 1.61 1998/06/17 09:27:15 kato Exp $ */ #include "opt_comconsole.h" @@ -759,7 +759,15 @@ siounload(struct pccard_devinfo *devi) { struct com_s *com; + if (!devi) { + printf("NULL devi in siounload\n"); + return; + } com = com_addr(devi->isahd.id_unit); + if (!com) { + printf("NULL com in siounload\n"); + return; + } if (!com->iobase) { printf("sio%d already unloaded!\n",devi->isahd.id_unit); return; |
