[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH bugfix v1 1/1] char/serial: Fix emptynesscheckk
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [Qemu-devel] [PATCH bugfix v1 1/1] char/serial: Fix emptynesscheckk |
Date: |
Tue, 11 Feb 2014 12:41:41 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
* Alex Benn?e (address@hidden) wrote:
>
> Dr. David Alan Gilbert <address@hidden> writes:
>
> > * Peter Crosthwaite (address@hidden) wrote:
> >> This was guarding against a full fifo rather than an empty fifo when
> >> popping. Fix.
> >>
> >> Signed-off-by: Peter Crosthwaite <address@hidden>
> >> ---
> >
> > Reviewed-by: Dr. David Alan Gilbert <address@hidden>
> >
> > 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 / address@hidden / Manchester, UK