Date: Wed, 29 Nov 2006 00:14:00 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 110645 for review Message-ID: <200611290014.kAT0E02L027665@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=110645 Change 110645 by imp@imp_lighthouse on 2006/11/29 00:13:50 EOF write correctly. Affected files ... .. //depot/projects/arm/src/sys/dev/iicbus/icee.c#6 edit Differences ... ==== //depot/projects/arm/src/sys/dev/iicbus/icee.c#6 (text+ko) ==== @@ -220,9 +220,7 @@ }; sc = CDEV2SOFTC(dev); - if (uio->uio_offset == sc->size) - return (0); - if (uio->uio_offset > sc->size) + if (uio->uio_offset >= sc->size) return (EIO); if (sc->type != 8 && sc->type != 16) return (EINVAL);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611290014.kAT0E02L027665>