From patchwork Tue May 26 18:53:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 225320 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61212C433E1 for ; Tue, 26 May 2020 19:17:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3975B2053B for ; Tue, 26 May 2020 19:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590520639; bh=+h9rwYI/xKlJmnEgPrnwvsAMxjyE8wJ7SqiZPWkNuyA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=C1L7W5ZgLuzzGpcxnA4wLFFHz+BR5Vp0HWRoLPOIxS5ZJ8HTzT99+c1ZliVkuouPR K/2JFg1LpRM6XPV5G3ogoJ/8gThcom3Wlrp5vFQlkQ8Wq7ecGn5Daa/+onbZRiEztr 83R69F3Kmqj401fVggk5lOYf4UT/HaQn/0wbricQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392203AbgEZTOr (ORCPT ); Tue, 26 May 2020 15:14:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:45906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392183AbgEZTOp (ORCPT ); Tue, 26 May 2020 15:14:45 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 EC5E120776; Tue, 26 May 2020 19:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590520485; bh=+h9rwYI/xKlJmnEgPrnwvsAMxjyE8wJ7SqiZPWkNuyA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PVgsNNTdX+EbHalo0f/orIaKhVn72v/2Hsnw8CosjqYN9dYClO+EG7QmkhgNGPY9A q6PPPkLy0TaWGrJxp2u/KQwWKkn5NFPFmW9gnXye9o13x4WS+CVKygVCabXfVtwoHb AIvVGdRU5liszFyoLb/jLFNAdHlHQWWtvxu/YitM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe JAILLET , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 5.6 097/126] iio: dac: vf610: Fix an error handling path in vf610_dac_probe() Date: Tue, 26 May 2020 20:53:54 +0200 Message-Id: <20200526183945.960511619@linuxfoundation.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200526183937.471379031@linuxfoundation.org> References: <20200526183937.471379031@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Christophe JAILLET commit aad4742fbf0a560c25827adb58695a4497ffc204 upstream. A call to 'vf610_dac_exit()' is missing in an error handling path. Fixes: 1b983bf42fad ("iio: dac: vf610_dac: Add IIO DAC driver for Vybrid SoC") Signed-off-by: Christophe JAILLET Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/dac/vf610_dac.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/iio/dac/vf610_dac.c +++ b/drivers/iio/dac/vf610_dac.c @@ -223,6 +223,7 @@ static int vf610_dac_probe(struct platfo return 0; error_iio_device_register: + vf610_dac_exit(info); clk_disable_unprepare(info->clk); return ret;