From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755502AbbJUO7I (ORCPT ); Wed, 21 Oct 2015 10:59:08 -0400 Received: from mail-qk0-f179.google.com ([209.85.220.179]:35833 "EHLO mail-qk0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755486AbbJUO7D (ORCPT ); Wed, 21 Oct 2015 10:59:03 -0400 Subject: Re: [PATCH] Fix data loss in cdc-acm To: Oliver Neukum References: <55AC1883.4050605@svenbrauch.de> <20150720172546.GF20628@localhost> <55AD38E5.1090807@svenbrauch.de> <1437486195.3823.13.camel@suse.com> <55AEBD06.6020402@svenbrauch.de> <55AED708.903@hurleysoftware.com> <55AEE805.9050204@svenbrauch.de> <55B01554.90201@hurleysoftware.com> <55B01EDE.3050503@svenbrauch.de> <55C249A3.6030809@hurleysoftware.com> <562684F4.1020501@hurleysoftware.com> <1445422352.2246.22.camel@suse.com> <56278073.6030700@hurleysoftware.com> Cc: Johan Hovold , Sven Brauch , One Thousand Gnomes , Toby Gray , Linux Kernel Mailing List , linux-serial@vger.kernel.org, linux-usb@vger.kernel.org From: Peter Hurley Message-ID: <5627A830.6050609@hurleysoftware.com> Date: Wed, 21 Oct 2015 10:58:56 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56278073.6030700@hurleysoftware.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/21/2015 08:09 AM, Peter Hurley wrote: > Be aware that while the N_TTY line discipline ensures that put_char() > and write() usage will not be interleaved without flush_chars(), other > line disciplines might not, so at least be sure that driver won't > crash if that happens. Sorry, I take that back: certain echoes are output via write() in OPOST mode, specifically for O_ONLCR and XTABS.