From owner-p4-projects@FreeBSD.ORG Wed Nov 29 00:14:02 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 56CDF16A562; Wed, 29 Nov 2006 00:14:02 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3547316A560 for ; Wed, 29 Nov 2006 00:14:02 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B55E43C9E for ; Wed, 29 Nov 2006 00:13:55 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kAT0E0gY027670 for ; Wed, 29 Nov 2006 00:14:00 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAT0E02L027665 for perforce@freebsd.org; Wed, 29 Nov 2006 00:14:00 GMT (envelope-from imp@freebsd.org) Date: Wed, 29 Nov 2006 00:14:00 GMT Message-Id: <200611290014.kAT0E02L027665@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 110645 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Nov 2006 00:14:02 -0000 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);