From 782470b16b32bf0d0e445a38c442a8f756b81b64 Mon Sep 17 00:00:00 2001 From: kato Date: Mon, 24 Jan 2000 08:20:54 +0000 Subject: Return ENXIO on error. Submitted by: n_hibma --- sys/pc98/cbus/sio.c | 4 ++-- sys/pc98/pc98/sio.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') 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); -- cgit v1.1