From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 11 Sep 2018 08:24:30 -0400 Subject: [U-Boot] [U-Boot, 2/4] serial: protect access to serial rx buffer In-Reply-To: <1533296325-2490-3-git-send-email-patrick.delaunay@st.com> References: <1533296325-2490-3-git-send-email-patrick.delaunay@st.com> Message-ID: <20180911122430.GT4980@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reviewed-by: Simon Glass 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: