]> xenbits.xensource.com Git - seabios.git/commit
sercon: Fix missing GET_LOW() to access rx_bytes
authorKevin O'Connor <kevin@koconnor.net>
Thu, 20 Jan 2022 00:07:47 +0000 (19:07 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 27 Jan 2022 16:28:41 +0000 (11:28 -0500)
commit15a102e062af18e01daece409ee54765a3b4ec13
tree1f97676f85efefcf39b8f98abea712c181ba215a
parent6d462830e7cf9ce7689986327be3a317f1f990da
sercon: Fix missing GET_LOW() to access rx_bytes

The variable rx_bytes is marked VARLOW, but there was a missing
GET_LOW() to access rx_bytes.  Fix by copying rx_bytes to a local
variable and avoid the repetitive segment memory accesses.

Reported-by: Gabe Black <gabe.black@gmail.com>
Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/sercon.c