[U-Boot] [U-Boot, 2/4] serial: protect access to serial rx buffer

Tom Rini trini at konsulko.com
Tue Sep 11 12:24:30 UTC 2018


On Fri, Aug 03, 2018 at 01:38:43PM +0200, Patrick Delaunay wrote:

> Add test to avoid access to rx buffer when this buffer is empty.
> In this case directly call getc() function to avoid issue when tstc()
> is not called.
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180911/ec64cd2f/attachment.sig>


More information about the U-Boot mailing list