[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130724221802.GB21709@kroah.com>
Date: Wed, 24 Jul 2013 15:18:02 -0700
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Dean Jenkins <Dean_Jenkins@...tor.com>
Cc: Andre Naujoks <nautsch2@...il.com>, linux-kernel@...r.kernel.org,
Jiri Slaby <jslaby@...e.cz>
Subject: Re: [PATCH 2/5] SLIP: Handle error codes from the TTY layer
On Tue, Jul 02, 2013 at 04:31:31PM +0100, Dean Jenkins wrote:
> It appears that SLIP does not handle error codes from the TTY layer.
> This will result in a malfunction because the remaining length of
> data will be corrupted by the negative error code values from the TTY
> layer.
>
> Therefore, add error code checks in sl_encaps() and sl_encaps_wakeup()
> to prevent the corruption of the sent data length.
>
> Note that SLIP is connectionless so on TTY error indicate that all data
> was sent. It seems SLIP does not return error codes to the network
> layer.
>
> Signed-off-by: Dean Jenkins <Dean_Jenkins@...tor.com>
Acked-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists