linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.5] Minor fix for driver/serial/core.c
@ 2003-04-10 21:30 Jean Tourrilhes
  0 siblings, 0 replies; only message in thread
From: Jean Tourrilhes @ 2003-04-10 21:30 UTC (permalink / raw)
  To: Russell King, Linux kernel mailing list, Alan Cox

	Hi Russell,

	The following command will do nothing at all on 2.5.X :
		setserial /dev/ttyS0 uart none

	I sent you the bug fix for that a few months ago, but as
2.5.67 this trivial bug is still not fixed. The patch is below...

	Have fun...

	Jean

---------------------------------------------------------

--- linux/drivers/serial/core.d1.c      Thu Apr 10 14:16:47 2003
+++ linux/drivers/serial/core.c Thu Apr 10 14:24:01 2003
@@ -784,6 +784,9 @@ uart_set_info(struct uart_state *state, 
                 */
                if (port->type != PORT_UNKNOWN)
                        retval = port->ops->request_port(port);
+               else
+                       /* Always success - Jean II */
+                       retval = 0;
 
                /*
                 * If we fail to request resources for the

	

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-10 21:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-10 21:30 [PATCH 2.5] Minor fix for driver/serial/core.c Jean Tourrilhes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).