+ drivers-returning-proper-error-from-serial-driver.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     drivers: returning proper error from serial driver

has been added to the -mm tree.  Its filename is

     drivers-returning-proper-error-from-serial-driver.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: drivers: returning proper error from serial driver
From: "Ram Gupta" <ram.gupta5@xxxxxxxxx>

Fix 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. 

Signed-off-by: Ram Gupta <r.gupta@xxxxxxxxxxxxxxxx>
Cc: Russell King <rmk@xxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/serial/serial_core.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/serial/serial_core.c~drivers-returning-proper-error-from-serial-driver drivers/serial/serial_core.c
--- a/drivers/serial/serial_core.c~drivers-returning-proper-error-from-serial-driver
+++ a/drivers/serial/serial_core.c
@@ -792,6 +792,7 @@ static int uart_set_info(struct uart_sta
 			 * We failed anyway.
 			 */
 			retval = -EBUSY;
+			goto exit;  // Added to return the correct error -Ram Gupta
 		}
 	}
 
_

Patches currently in -mm which might be from ram.gupta5@xxxxxxxxx are

drivers-returning-proper-error-from-serial-driver.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux