Date: Tue, 28 Nov 2006 22:53:13 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 110640 for review Message-ID: <200611282253.kASMrDFV008247@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=110640 Change 110640 by imp@imp_lighthouse on 2006/11/28 22:52:39 Gotta lock if we're going to sleep. Affected files ... .. //depot/projects/arm/src/sys/arm/at91/at91_ssc.c#18 edit Differences ... ==== //depot/projects/arm/src/sys/arm/at91/at91_ssc.c#18 (text+ko) ==== @@ -377,6 +377,7 @@ int err, ret, len; sc = CDEV2SOFTC(dev); + AT91_SSC_LOCK(sc); // must read a multiple of 4 bytes if ((uio->uio_resid & 0x3) != 0) return (EINVAL); @@ -408,6 +409,7 @@ sc->rd_end -= len; } } + AT91_SSC_UNLOCK(sc); return (err); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611282253.kASMrDFV008247>