From patchwork Thu Apr 26 15:12:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Andrzej Siewior X-Patchwork-Id: 10366181 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 11656601D3 for ; Thu, 26 Apr 2018 15:12:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 024CD28501 for ; Thu, 26 Apr 2018 15:12:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB18728520; Thu, 26 Apr 2018 15:12:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9432028501 for ; Thu, 26 Apr 2018 15:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SXZfvtcaNxP+XuT4+CXOtSV7qnjgFHIFwyVDrIUz1mw=; b=NjBfjPr0s4gHsE uoS/l04T8zgZ901NCbb+rMsi7/XglRziBCEE9TA9uikiIV6DrVAiwMpFIQytJq+ET87jFIc9kjDte 9F50wvcTQ4ZY8DyTOrCNWVMh30kaLjio85PG9Q/dmCJTiGIGEKAduy3fRDJNOC74t+oBVRFy9yGVh 6poEvoxEN1RoDX57xEq8AaUS9MHi40p/BOkHLSbJxEiXN1/IH5TyYGqHmtUhO42IYrqVS3G5E2the W+SCfipHET+lgpw8b16CqylXrX51XZ3MxHSxLNVFTgIZ9ZWkymh2nJFp8Sce/4U4AwGqJZ1KYM5hV sV7mHMlqCPgV8PkXz/Dg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBiZi-0007lo-3X; Thu, 26 Apr 2018 15:12:46 +0000 Received: from galois.linutronix.de ([2a01:7a0:2:106d:700::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBiZb-0007gh-2K for linux-arm-kernel@lists.infradead.org; Thu, 26 Apr 2018 15:12:40 +0000 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1fBiZK-0007e1-Hg; Thu, 26 Apr 2018 17:12:22 +0200 Date: Thu, 26 Apr 2018 17:12:22 +0200 From: Sebastian Andrzej Siewior To: linux-serial@vger.kernel.org Subject: Re: [PATCH] tty/serial: atmel: use port->name as name in request_irq() Message-ID: <20180426151222.6vw67lwqmu6ffgnw@linutronix.de> References: <20180426150625.q5tqcb7fzchvkb5d@linutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20180426150625.q5tqcb7fzchvkb5d@linutronix.de> User-Agent: NeoMutt/20180323 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180426_081239_331555_EDE32A2B X-CRM114-Status: UNSURE ( 9.09 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Peter Hurley , Richard Genoud , Greg Kroah-Hartman , Jiri Slaby , tglx@linutronix.de, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On 2018-04-26 17:06:25 [+0200], To linux-serial@vger.kernel.org wrote: > It seems not to happen in v4.1.51 but it happens in v4.9 and v4.17-rc2 > so if it broke accidentally it was not recently. This is what I used to check: If this is unknown and a bisect is requested, please let me know. Sebastian diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c @@ -170,7 +170,7 @@ void free_tty_struct(struct tty_struct *tty) put_device(tty->dev); kfree(tty->write_buf); tty->magic = 0xDEADDEAD; - kfree(tty); + strcpy(tty->name, "GONE"); } static inline struct tty_struct *file_tty(struct file *file)