aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cy
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1998-03-18 20:52:28 +0000
committerDavid Greenman <dg@FreeBSD.org>1998-03-18 20:52:28 +0000
commit4d88b7963af8482e7e22295c80036dd0ae489a4a (patch)
treea4a2a04994e52d32db741c84619237a19d712740 /sys/dev/cy
parent41c01ead61ebf3dfb08e30f61a7cc9cb5745ff0a (diff)
Notes
Diffstat (limited to 'sys/dev/cy')
-rw-r--r--sys/dev/cy/cy.c4
-rw-r--r--sys/dev/cy/cy_isa.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c
index 8661f3e44fef3..5dd4762e2a682 100644
--- a/sys/dev/cy/cy.c
+++ b/sys/dev/cy/cy.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.60 1998/01/24 02:54:17 eivind Exp $
+ * $Id: cy.c,v 1.61 1998/02/13 12:45:47 phk Exp $
*/
#include "opt_compat.h"
@@ -1122,6 +1122,8 @@ siointr(unit)
int ifree;
count = cd_inb(iobase, CD1400_RDCR, cy_align);
+ if (!count)
+ goto cont;
com->bytes_in += count;
ioptr = com->iptr;
ifree = com->ibufend - ioptr;
diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c
index 8661f3e44fef3..5dd4762e2a682 100644
--- a/sys/dev/cy/cy_isa.c
+++ b/sys/dev/cy/cy_isa.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.60 1998/01/24 02:54:17 eivind Exp $
+ * $Id: cy.c,v 1.61 1998/02/13 12:45:47 phk Exp $
*/
#include "opt_compat.h"
@@ -1122,6 +1122,8 @@ siointr(unit)
int ifree;
count = cd_inb(iobase, CD1400_RDCR, cy_align);
+ if (!count)
+ goto cont;
com->bytes_in += count;
ioptr = com->iptr;
ifree = com->ibufend - ioptr;