commit | 9c44282f03ef3f8f1f9cb7144c1bd9bce36d4e92 | [log] [tgz] |
---|---|---|
author | Patrick Delaunay <patrick.delaunay@st.com> | Fri Aug 03 13:38:43 2018 +0200 |
committer | Tom Rini <trini@konsulko.com> | Mon Sep 10 20:20:34 2018 -0400 |
tree | 38ccac62ceb5957d25a71707c3423b2fde263d9a | |
parent | 47ae3c305c0cb4412ce3d3a27b39aa3044495e69 [diff] |
serial: protect access to serial rx buffer 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@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>