From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDCev-0006CZ-MP for qemu-devel@nongnu.org; Tue, 11 Feb 2014 07:41:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDCeq-0008VB-3d for qemu-devel@nongnu.org; Tue, 11 Feb 2014 07:41:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:62102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDCep-0008V2-ST for qemu-devel@nongnu.org; Tue, 11 Feb 2014 07:41:48 -0500 Date: Tue, 11 Feb 2014 12:41:41 +0000 From: "Dr. David Alan Gilbert" Message-ID: <20140211124140.GC2509@work-vm> References: <153a8e98437c7d4b7fc3df2bf375fbc9e0bdb8ef.1392101145.git.peter.crosthwaite@xilinx.com> <20140211095528.GA2509@work-vm> <87ioslhliu.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87ioslhliu.fsf@linaro.org> Subject: Re: [Qemu-devel] [PATCH bugfix v1 1/1] char/serial: Fix emptynesscheckk List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Benn?e Cc: peter.maydell@linaro.org, Peter Crosthwaite , mjt@tls.msk.ru, qemu-devel@nongnu.org, edgari@xilinx.com, mkletzan@redhat.com * Alex Benn?e (alex.bennee@linaro.org) wrote: > > Dr. David Alan Gilbert writes: > > > * Peter Crosthwaite (peter.crosthwaite@xilinx.com) wrote: > >> This was guarding against a full fifo rather than an empty fifo when > >> popping. Fix. > >> > >> Signed-off-by: Peter Crosthwaite > >> --- > > > > Reviewed-by: Dr. David Alan Gilbert > > > > I think this brings it back to how it was on the old FIFO code. > > This does make me wonder why it was changed? Was there another crashing > case it fixed? The old serial code had it's own FIFO implementation, and that was removed so that we had one less FIFO in the codebase; the problem was that the old one in the serial code just returned 0 when empty, the shared one aborts. Dave -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK