Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3926147imm; Mon, 8 Oct 2018 11:48:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV6002r5+l13HxavTt0B784F4DCQIexCItL0P6hrZsOwTm7rvywkKz8n+iAH6N8PhjrNwH1Er X-Received: by 2002:a17:902:8481:: with SMTP id c1-v6mr25591178plo.158.1539024498340; Mon, 08 Oct 2018 11:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539024498; cv=none; d=google.com; s=arc-20160816; b=N58R8ulyKPDBwBoCN4VFFt7ZuVctMLlyZ1Gbt8Ygb9/vyYeRBKPfyS2OO7250eNdPm eeLNsyjjXSXrX3DFb09VfaTqWQQsE0dB5vze4Wbhu2K81mgGFHsyJiBlxnX0lBU/bWrA WVs9gWgqlxU/znNSjOPdgn60CVGAPfMEvf3qvfNK68+npRARNpfnuiqTC1j7hbmjlhX1 O7z4/jpb9+biH1JEVTkdPZaavS62MzsUSzTKHerEoeSgn0ipjXeOleOPbp1EIpEM9tAc j6saaRyQDiesXvGgMEKawwR4jEj0MNkOM9AdUkPLkfIF9urgo+SaUpsyDMyTfjSBqDcd dOIQ== 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:dkim-signature; bh=EFShjbcdLyoZTFh1xulkGB+Kr4fdRR9Lb0p8S/8wJJA=; b=ULT2PC7Y8opWBTuYRycVo/GpbwN9g2ro37KHLjG6ephWPiZHse8yJ2qAddMRf2Wx7/ GkFzhIHYqCNkxp3RPBFYfVXfOSDJ0qWhrdRkB5B66zY0yl7zR5dsrYZnIH8er6BInTKq uS0M1FJHO7U9CmFzdG0/kapjrwgsXhZRDID9PrENor3lh0N3f07fcKNpVIrjwJitCtPZ TCxVbbTIAC4dS7DLnc0fP0AXp6u600E/H9vOePF09Yt8ItgG9xopM3xAFn73Sw7arRut fO8i1zDnqnA4waxAaGZzOvNZHkOiw4++Cjc6aKw3GY9/f1BEsx8GiSWNvLZhamxcrOZH lhYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bzPvPNk9; 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 x17-v6si17605696pgl.414.2018.10.08.11.48.03; Mon, 08 Oct 2018 11:48:18 -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; dkim=pass header.i=@kernel.org header.s=default header.b=bzPvPNk9; 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 S1731265AbeJIB7o (ORCPT + 99 others); Mon, 8 Oct 2018 21:59:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:48038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728570AbeJIB7n (ORCPT ); Mon, 8 Oct 2018 21:59:43 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 41CA22087D; Mon, 8 Oct 2018 18:46:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024398; bh=JYX3adfmBumBwr4RMpPPaVNYFjhs3n4CS+Nu5Ii3nJg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bzPvPNk9HztDDDOsVYSir9tIu+vmcCxwnCTz0F4SINFi+vcG1/1CtBPjD5tiIg5UK 0fOKVktIvyiQNh7rIOJ2N3h7vMpkIspXAVYT7UaFDd80dKIyhTaJmPACkbJRvfwWkT j7sQGhgg6Dj9V0aC9LQNs+d9EPKTmDtzb6FZjx1E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexey Khoroshilov , Linus Walleij , Sasha Levin Subject: [PATCH 4.18 027/168] gpio: dwapb: Fix error handling in dwapb_gpio_probe() Date: Mon, 8 Oct 2018 20:30:07 +0200 Message-Id: <20181008175621.075533585@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@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: Alexey Khoroshilov [ Upstream commit a618cf4800970d260871c159b7eec014a1da2e81 ] If dwapb_gpio_add_port() fails in dwapb_gpio_probe(), gpio->clk is left undisabled. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpio/gpio-dwapb.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpio/gpio-dwapb.c +++ b/drivers/gpio/gpio-dwapb.c @@ -726,6 +726,7 @@ static int dwapb_gpio_probe(struct platf out_unregister: dwapb_gpio_unregister(gpio); dwapb_irq_teardown(gpio); + clk_disable_unprepare(gpio->clk); return err; }