Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2518272imm; Mon, 24 Sep 2018 05:49:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV61yCVVmxstSnql4L3SNN5DffP1/LEK0nYZGa6aZ6iX/SyYTOl/k2qS/S1xk2R4Eydqk/CYi X-Received: by 2002:a63:380d:: with SMTP id f13-v6mr9412123pga.124.1537793368586; Mon, 24 Sep 2018 05:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537793368; cv=none; d=google.com; s=arc-20160816; b=Ry1rJlh42AfsECIl3vOXGDVFSaFKaa8Kkp+WBmBO4UtPsFFx4AZkBG/i6irZITjC/A bG69nfbtjPNXz91Nnc2m6TFwXbt97hYJ/yp2Gyg8A3iXBFRLWwXqaPeYe1ClwUwkw8gd tJ3rVvLxwRVTQGlt0/j9+GjDrJCCiELC11ksCQnS8s+pyRd12Sh/9LyvxE8uOqPungav WQhbIplKyIQlsmrOvID+BFf1/6u1TNo9vOkWymaijDZeigchBBOa/rj3KE7rsIzxiqg7 SEcy5EhxstDan/43m6lNf5DZcz0UZ7TyrQ2QlAbe23qmwZyj0FaMrukpc3gkIK+EXWfM lNPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=f2A6FnfsvEv1XddUNa7sBmbZxUxYODqZl9W+4XBBeSY=; b=o8529y5Jg32Z5MVY0AaW603oA/OfltQRbW39p+E+90bowBhEte6KgtDPPNpGLwI/EY ix/1aI7ymOMS+FNeEvQ7cGGB3qXi5Vs4GnWTkt6QUCcBAmHCq8h945FPP8L7tN//wi9R 6wAanc+daHSecBUTlmniP25SkifG2WEhza0UAIxA2UrEgGjZ8I15kVWHy6Xd07ZY5WcB MOvORym9eum92Lso4YbALbF7/MJDepQkfo34kipUmMN/yvvNqKOg+f238XPsHt0KQQ2T FJW0efD4eDj9FW9jTijwKoCKD/bX/48Ah1/n2TmDy9gxL1dKtge0GlHemb5J/CcNsHOg ueOA== 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 f13-v6si37786765pln.512.2018.09.24.05.49.13; Mon, 24 Sep 2018 05:49:28 -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 S2388801AbeIXSnf (ORCPT + 99 others); Mon, 24 Sep 2018 14:43:35 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59162 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729543AbeIXSne (ORCPT ); Mon, 24 Sep 2018 14:43:34 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B3EDE109E; Mon, 24 Sep 2018 12:41:35 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Sverdlin , Sasha Levin Subject: [PATCH 4.18 178/235] serial: 8250: of: Correct of_platform_serial_setup() error handling Date: Mon, 24 Sep 2018 13:52:44 +0200 Message-Id: <20180924113122.519851028@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113103.999624566@linuxfoundation.org> References: <20180924113103.999624566@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Alexander Sverdlin [ Upstream commit b29330d829042512fabb2bfa3bbfa32df1115594 ] Don't dispose IRQ mapping before it has been created. Fixes: aa9594740 ("serial: 8250_of: Add IO space support") Signed-off-by: Alexander Sverdlin Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/8250/8250_of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/tty/serial/8250/8250_of.c +++ b/drivers/tty/serial/8250/8250_of.c @@ -124,7 +124,7 @@ static int of_platform_serial_setup(stru dev_warn(&ofdev->dev, "unsupported reg-io-width (%d)\n", prop); ret = -EINVAL; - goto err_dispose; + goto err_unprepare; } } port->flags |= UPF_IOREMAP;