summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>2000-01-24 08:20:54 +0000
committerkato <kato@FreeBSD.org>2000-01-24 08:20:54 +0000
commit782470b16b32bf0d0e445a38c442a8f756b81b64 (patch)
treed53ad74f312e4b7542c4be0a2d1f89c8d9ce2ecb /sys
parent7023b084dfc5656a2e9a75b0b1b5f1c8b85e0c1e (diff)
downloadFreeBSD-src-782470b16b32bf0d0e445a38c442a8f756b81b64.zip
FreeBSD-src-782470b16b32bf0d0e445a38c442a8f756b81b64.tar.gz
Return ENXIO on error.
Submitted by: n_hibma
Diffstat (limited to 'sys')
-rw-r--r--sys/pc98/cbus/sio.c4
-rw-r--r--sys/pc98/pc98/sio.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index 745672e..0c3b62b 100644
--- a/sys/pc98/cbus/sio.c
+++ b/sys/pc98/cbus/sio.c
@@ -1650,7 +1650,7 @@ sioattach(dev)
obufsize = 2048;
}
if ((obuf = malloc(obufsize * 2, M_DEVBUF, M_NOWAIT)) == NULL)
- return (0);
+ return ENXIO;
bzero(obuf, obufsize * 2);
#endif
@@ -1739,7 +1739,7 @@ sioattach(dev)
if (siosetwater(com, com->it_in.c_ispeed) != 0) {
enable_intr();
free(com, M_DEVBUF);
- return (0);
+ return ENXIO;
}
enable_intr();
termioschars(&com->it_in);
diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c
index 745672e..0c3b62b 100644
--- a/sys/pc98/pc98/sio.c
+++ b/sys/pc98/pc98/sio.c
@@ -1650,7 +1650,7 @@ sioattach(dev)
obufsize = 2048;
}
if ((obuf = malloc(obufsize * 2, M_DEVBUF, M_NOWAIT)) == NULL)
- return (0);
+ return ENXIO;
bzero(obuf, obufsize * 2);
#endif
@@ -1739,7 +1739,7 @@ sioattach(dev)
if (siosetwater(com, com->it_in.c_ispeed) != 0) {
enable_intr();
free(com, M_DEVBUF);
- return (0);
+ return ENXIO;
}
enable_intr();
termioschars(&com->it_in);
OpenPOWER on IntegriCloud