mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH]drivers: returning proper error from serial driver
@ 2006-07-13 16:45 Ram Gupta
  2006-07-13 17:00 ` Russell King
  0 siblings, 1 reply; 2+ messages in thread
From: Ram Gupta @ 2006-07-13 16:45 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux mailing-list

[-- Attachment #1: Type: text/plain, Size: 252 bytes --]

This patch fixes the issue of returning 0 even in case of error from
uart_set_info function.
Now it returns the  error EBUSY  when it can not set new port. Please apply

Signed-off-by: Ram Gupta(r.gupta@astronautics.com)
-------------
Thanks
Ram Gupta

[-- Attachment #2: patch.serial_core --]
[-- Type: application/octet-stream, Size: 359 bytes --]

--- linux-2.6.17/drivers/serial/serial_core.c.orig	2006-07-13 11:17:49.000000000 -0500
+++ linux-2.6.17/drivers/serial/serial_core.c	2006-07-13 11:23:05.000000000 -0500
@@ -786,6 +786,7 @@ static int uart_set_info(struct uart_sta
 			 * We failed anyway.
 			 */
 			retval = -EBUSY;
+			goto exit;  // Added to return the correct error -Ram Gupta
 		}
 	}
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-13 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-13 16:45 [PATCH]drivers: returning proper error from serial driver Ram Gupta
2006-07-13 17:00 ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®