diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-03-30 15:19:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-03-30 15:19:06 +0000 |
commit | ffb347ba993b2dab9093c47b78d079b35deeb868 (patch) | |
tree | 4b0e25f82a4fd9a5cf3a11695d290b2e699f32ad /sys/dev/ccd.c | |
parent | e2f83eae7489f832c7819f3b721078bcf8d1c1a0 (diff) |
accept interleave of 0; pr 5431, my patch matches the author's
Diffstat (limited to 'sys/dev/ccd.c')
-rw-r--r-- | sys/dev/ccd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ccd.c b/sys/dev/ccd.c index f1d206b1936..85efc4fa6de 100644 --- a/sys/dev/ccd.c +++ b/sys/dev/ccd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ccd.c,v 1.68 2006/11/29 15:03:42 krw Exp $ */ +/* $OpenBSD: ccd.c,v 1.69 2007/03/30 15:19:05 deraadt Exp $ */ /* $NetBSD: ccd.c,v 1.33 1996/05/05 04:21:14 thorpej Exp $ */ /*- @@ -1151,7 +1151,7 @@ ccdioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) return (EBUSY); if (ccio->ccio_ndisks == 0 || ccio->ccio_ndisks > INT_MAX || - ccio->ccio_ileave <= 0) + ccio->ccio_ileave < 0) return (EINVAL); if ((error = ccdlock(cs)) != 0) |