Message ID | 20220404091926.22115-1-linmq006@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1673C433F5 for <linux-arm-kernel@archiver.kernel.org>; Mon, 4 Apr 2022 09:20:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=DqGqqUnTMMyQm7W6VWI0GC+IK+9fL3RQjTRyo0snbKQ=; b=bs2l7unfb8iOkf q6rdOzIr0jjdYXBE6lVgP674rCaO/3AGz8MhiNjfZwISFEbrB70+23pd4feQGzZHBZMATbgsJqvJ9 nwW0AThdIxdPloPJDXicWU3CQQ2O1No27G6w1ZmAG5RoXlKTEvG+yFhSw3xOy1x8ZDyfaNPzNb4PC qhnAEh6pZi5wi/qIY/B8QRw05iT9fmoz7zc2GPFSkxOgUamte67HxhqDXnP/Yq1VDeEINhrg3Bd6S uHcnu3oZf9czZ+sWrWHNYb0pT5rieTtX7HRuWAunMxj5Q9ARZyVhsAzyCnEXiwn+C6mldilRooKZG /f1+HMkRUIoNRIIE03Bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbIs5-00E8wl-PY; Mon, 04 Apr 2022 09:19:38 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nbIs2-00E8uv-2f for linux-arm-kernel@lists.infradead.org; Mon, 04 Apr 2022 09:19:35 +0000 Received: by mail-pj1-x1036.google.com with SMTP id fu5so2473729pjb.1 for <linux-arm-kernel@lists.infradead.org>; Mon, 04 Apr 2022 02:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=qelAC5YBe1yCBESGwxgX8ahq4gTeEnW6KQzbNy86Lmw=; b=QhY3lkav8Do3muF1gDCrngcr8qjDJsUGqV5+jSiL9RnhGvCVCVxHc4U3HJUMCUawiK SExYUSdLGARgxQYmRuVi5P/UoCLVmwB+rjMb0/3/t3ksuVTO9moUrXWdJhfIQKvLvtxO 0w7swdR+B5zpWIuCZacVt4q5IDtHcT1RABQdWnjGG6N+e5NpVUk+dlIK79B3DelTcFBp dcNA0Eb65hlCwcV7XVxghU8v5DcylXg55svAKLR9ttpTDaF6Grf7VxVb7vKyymcLymEx ik0ZHvKLojiskAxAw1bDToCjpHgCbzKC/A94J6nlKbWqSZwhgMd8qxi6BbH34W9HxmcA wHJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qelAC5YBe1yCBESGwxgX8ahq4gTeEnW6KQzbNy86Lmw=; b=uOAseWl9swQImZoI3rcFV1LKM/k88CtLmTpxO4/23u8Jgg+XKNuUZu6hNgINv/Rd59 mJO0oYDnzb/GBSIxD8Lji8s7IO4CcdIKu3ycRYorZpRASGneWbXt+TprhZ23/z0gfsBv eM1gf1TZ/H+knH1qpfbKatY3sot2zZppiHGoGlykDOGAUDwuxbhCm7zIZHaKgrRk69A6 zYJ0HMbVUPH3P6aAzS3W8S8q7dcjSjIahNDZ9LKT5yFQAeTAcp+uZzzhuYQclOqzMkgQ C1303ZfpL8YoL+WdfW5gFE/t9w6kJDMv3zYgoJuB1tBbTFjtPfVg41dTH8hlylGQlr3b lHWg== X-Gm-Message-State: AOAM531jVU+a6xD+hRVCHHhAsyey2rsDQY8sw8N0FT7vEWZW9FvDOFs6 A54wLNI6zx4VqIfwRa35EMA= X-Google-Smtp-Source: ABdhPJy408c3fmOLzgDMpCG5li8dOVT+a7bUMRN+8w6SDFrtFTqFr0YJgL7iSUdPJQYwwQrK67gANg== X-Received: by 2002:a17:902:bcc6:b0:153:53c2:7e2c with SMTP id o6-20020a170902bcc600b0015353c27e2cmr22483820pls.14.1649063972253; Mon, 04 Apr 2022 02:19:32 -0700 (PDT) Received: from localhost.localdomain ([159.226.95.43]) by smtp.googlemail.com with ESMTPSA id n52-20020a056a000d7400b004fad9132d73sm11135143pfv.129.2022.04.04.02.19.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 02:19:31 -0700 (PDT) From: Miaoqian Lin <linmq006@gmail.com> To: Daniel Mack <daniel@zonque.org>, Haojian Zhuang <haojian.zhuang@gmail.com>, Robert Jarzmik <robert.jarzmik@free.fr>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: linmq006@gmail.com Subject: [PATCH] ALSA: pxa2xx: Add missing of_node_put() in pxa_ssp_probe Date: Mon, 4 Apr 2022 09:19:26 +0000 Message-Id: <20220404091926.22115-1-linmq006@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220404_021934_171991_FE8433D5 X-CRM114-Status: GOOD ( 11.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
ALSA: pxa2xx: Add missing of_node_put() in pxa_ssp_probe
|
expand
|
diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index 7f13a35e9cc1..167b90b48d7f 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c @@ -770,6 +770,7 @@ static int pxa_ssp_probe(struct snd_soc_dai *dai) } priv->ssp = pxa_ssp_request_of(ssp_handle, "SoC audio"); + of_node_put(ssp_handle); if (priv->ssp == NULL) { ret = -ENODEV; goto err_priv;
This node pointer is returned by of_parse_phandle() with refcount incremented in this function. Calling of_node_put() to avoid the refcount leak. Fixes: 2023c90c3a2c ("ASoC: pxa: pxa-ssp: add DT bindings") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> --- sound/soc/pxa/pxa-ssp.c | 1 + 1 file changed, 1 insertion(+)