[syslinux:elflink] ldlinux: fix serial port handling regression

syslinux-bot for Matt Fleming matt.fleming at intel.com
Thu Jun 13 07:18:05 PDT 2013


Commit-ID:  a4a1fb08c7eb33415709b246a840f08d086d5c5d
Gitweb:     http://www.syslinux.org/commit/a4a1fb08c7eb33415709b246a840f08d086d5c5d
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Wed, 12 Jun 2013 07:52:29 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Wed, 12 Jun 2013 07:52:29 +0100

ldlinux: fix serial port handling regression

commit c4fa33189f1d ("serial: Clean up and abstract handling of serial
ports") removed an assignment to 'port' in the config parsing code which
is used to setup the serial ports. Restore the assignment.

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 com32/elflink/ldlinux/readconfig.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/com32/elflink/ldlinux/readconfig.c b/com32/elflink/ldlinux/readconfig.c
index 7701acf..35b137e 100644
--- a/com32/elflink/ldlinux/readconfig.c
+++ b/com32/elflink/ldlinux/readconfig.c
@@ -1278,7 +1278,9 @@ do_include:
 		baud = BAUD_DIVISOR / baud;
 		baud &= 0xffff;
 		BaudDivisor = baud;
-		SerialPort = get_serial_port(port);
+
+		port = get_serial_port(port);
+		SerialPort = port;
 
 		/*
 		 * Begin code to actually set up the serial port


More information about the Syslinux-commits mailing list