Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1804758imm; Thu, 12 Jul 2018 08:06:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdlXI9YVl01ld7Hkg9Aee6BpfTUQrrOmlNBuS3K0p5PVJp7ciSY7ud3Yqw6c7Yj6n2BoYhv X-Received: by 2002:a17:902:bc85:: with SMTP id bb5-v6mr2550873plb.229.1531407970803; Thu, 12 Jul 2018 08:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531407970; cv=none; d=google.com; s=arc-20160816; b=M+gVrkaSsoWKo+8E+XKwg8Zi5UlHNauN8l9D8M9v6Y2pakG/Gatpc+SpawOHkX80Cx 6YGX3EfBbEoAdDk3glrMlNOBItznuaeyuIYU0Ufm88cRfExYYbClX108I954ZYgMIVfr vz00Kwd0Qk0mebhAyFZ5qjgGZOaOKAmGj3+E9Ri3LjTDcwmn220WFvgYZ7DZSIwYfd9E ALatSad93gXALyLJCdsp+VaKLLOYWqc5HLrq6gTB57Yro/NDtqqD6JZJ/6wMHV8AcuSl RzFe5z4SJbmeXXCQUFyxCTZ3KlIX9SGdMf4aHbIjS5EpeeqUoetXCBimJZ7p99KDNg8x BQ+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=cSGWAy7bbUGSyVtmk7kj3kl4AXwNtoiaNwrZ1KnBWzY=; b=hig6VVRVrUGIODiv9MKaiABcudyxruQWfKAE0qoWZE3QD3uwbAcTG3q1sdiZn8Yljk EORGzT6rBX9jn/ZAdyQCPEHD3G2VCxruunq5nuP7qZvx8DXtU20ECH0LlAhQ8bZUa88V H887qDQKfXz204fYzxzgqRFcEqDFmT96dZ8rA+2U/7uXP8u+cPGGHk3dEZRViIU3DGjZ xcGuTI/0ofT0udVnp69u1B2+1m++HdVt3n7GCga6l65hZhLAxYMtgXn+YSTZhmjhSbeJ Pg38eyoajvmwwCEA4gDJ6n9HlhK/7f7053/uhp+nZr6MCHirLpco50WOOTI84ZW97ztD /w7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1-v6si1505026pfe.150.2018.07.12.08.05.52; Thu, 12 Jul 2018 08:06:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732622AbeGLPOi (ORCPT + 99 others); Thu, 12 Jul 2018 11:14:38 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51004 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732373AbeGLPOi (ORCPT ); Thu, 12 Jul 2018 11:14:38 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 08462BAC; Thu, 12 Jul 2018 15:04:40 +0000 (UTC) Date: Thu, 12 Jul 2018 17:04:38 +0200 From: Greg Kroah-Hartman To: Tycho Andersen Cc: Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Serge E . Hallyn" Subject: Re: [PATCH v4] uart: fix race between uart_put_char() and uart_shutdown() Message-ID: <20180712150438.GF22502@kroah.com> References: <20180706212220.GC3583@cisco.lan> <20180711160744.32074-1-tycho@tycho.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180711160744.32074-1-tycho@tycho.ws> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 11, 2018 at 10:07:44AM -0600, Tycho Andersen wrote: > + if (uport) > + spin_lock_irqsave(&uport->lock, flags); That's the same thing as just calling uart_port_lock(), why aren't you doing that? thanks, greg k-h