Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp997099yba; Thu, 4 Apr 2019 02:03:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqycyTa0OnNOLoJnjCW8HfX3pspjxx8ZstJ9aETBperSBEOEriQHekXS/VRQBAAQj04EKXsH X-Received: by 2002:a65:5049:: with SMTP id k9mr4717690pgo.229.1554368610828; Thu, 04 Apr 2019 02:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368610; cv=none; d=google.com; s=arc-20160816; b=sDEOBmCchVZsvrAj3Jb4vK/oisl8i1Ebqcq7bLRiugsWqzPu8CndXDsdKBDS+Wh6zN h96dJSqnA1ErjNbP7aQEERibUonT9YUh0gr1HLvuJWVsIvJsnZSJroxu5iCQBr/zB2et YWUoH09yR07ocP18u8tyVOddwIUakyzVZSKRVJkeXJJUSsgKIpGvKf+OukuIUcMxXy8h k40Qw3n6hCdSrRgZgdLL4PzTZxZ+DcBMMkGfz9Kg/Sn6ZcnTgOqvuYodJgU9w1QcIOLQ H3NMUUOyU2nBSRtt0TLu1uQjQjjcRTpBK7nAPn1lxigyk7zJYVskzmxWBFqCmcC52TRq G6HQ== 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=w2TTd/Guq6QsbNy+x4jSJTdTf+kLm/BJkB7Trsj+IJM=; b=Ls7POkxrKXbEqqdqWJLe1eW5whWdA+DzEZ6VkdWm+HB+rFARaI8pI5qq3+Ar0HfWfN ronGw9lDEfTIL/lbWJphatA3vwn9Rd5HpWwuyEw+JOvB3m6kSa3tLuMygkSduEU7y/Wj JpY4APfWW9VDxUYs4Fg4jC4cPgHruE+Ys91GRIs3K1gVRjU0ZOukuhQ2m/xGF1Drnrz8 IvMFBKGnDI7WrL9kwSr/Xo52V2nRfoiSwBNz8cK3eKdq8UdJRSl3HpY+j4r7EUgxxPE6 iTu0uk9lLS67TKYYht1ePKo2OTTYJ+h46Rvfh5RMpHfch9/qMoMYE3a6UAZq8EjCc87A pxGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f1IzNzWv; 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 73si16155554pld.156.2019.04.04.02.03.15; Thu, 04 Apr 2019 02:03:30 -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=f1IzNzWv; 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 S1730826AbfDDJCj (ORCPT + 99 others); Thu, 4 Apr 2019 05:02:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:40050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731651AbfDDJCi (ORCPT ); Thu, 4 Apr 2019 05:02:38 -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 268AF2147C; Thu, 4 Apr 2019 09:02:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368557; bh=WuX/zpqnPf27ubbn+5K7nT9CQjNZKECvuXC1kevAWB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f1IzNzWvvwMBDhNu3DR/DbWBRjIFDHDZhh+bk3MHMwlLGE6V6CYg3fFkW8jChVJra RqcPjWqKhSwpHaN6yfjdOAK8lTl1JJXUVSihlbTqLEdOIhUo5CkNrxA0T2EZAFV2xm 6Pd0wmmecPkvIpsFjj9/fb3kwdVordw92Cy96eis= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wen Yang , Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Sasha Levin Subject: [PATCH 4.19 083/187] SoC: imx-sgtl5000: add missing put_device() Date: Thu, 4 Apr 2019 10:47:00 +0200 Message-Id: <20190404084606.948921343@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 8fa857da9744f513036df1c43ab57f338941ae7d ] The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Detected by coccinelle with the following warnings: ./sound/soc/fsl/imx-sgtl5000.c:169:1-7: ERROR: missing put_device; call of_find_device_by_node on line 105, but without a corresponding object release within this function. ./sound/soc/fsl/imx-sgtl5000.c:177:1-7: ERROR: missing put_device; call of_find_device_by_node on line 105, but without a corresponding object release within this function. Signed-off-by: Wen Yang Cc: Timur Tabi Cc: Nicolin Chen Cc: Xiubo Li Cc: Fabio Estevam Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: NXP Linux Team Cc: alsa-devel@alsa-project.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/fsl/imx-sgtl5000.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c index c29200cf755a..9b9a7ec52905 100644 --- a/sound/soc/fsl/imx-sgtl5000.c +++ b/sound/soc/fsl/imx-sgtl5000.c @@ -108,6 +108,7 @@ static int imx_sgtl5000_probe(struct platform_device *pdev) ret = -EPROBE_DEFER; goto fail; } + put_device(&ssi_pdev->dev); codec_dev = of_find_i2c_device_by_node(codec_np); if (!codec_dev) { dev_err(&pdev->dev, "failed to find codec platform device\n"); -- 2.19.1