Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp763830pxb; Mon, 16 Aug 2021 17:37:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwu4sKookEQXJ+l8B6M6oaawuNoidsoSzJeaOGg56FN2j4DxNmdlPUF8iyzHz9WQaRKSMu5 X-Received: by 2002:a50:ac82:: with SMTP id x2mr960174edc.350.1629160656517; Mon, 16 Aug 2021 17:37:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629160656; cv=none; d=google.com; s=arc-20160816; b=vxnCyxZUrgZJG9WMEvYdeupidwK2Gy7xqL8D6w5LBXVANluQ2qetiaVRMa/pd3h0RU UCP7hdR74RrA7G9OKnh7HMHfN1tdH92bkGI8hCBVv4oJn6XRdf+UpGsjBW1FGxTSDlSL zK+ejiBzhA4hLR/gX+lc3yZQuBA7qNunCsvRho2F5MM6gNwrhXfvrlcsqNdO69e9u8tm zxJuhlKk5ch7rM0MsntQPdjkBlt039iqBGz2Ebcf6t/uhxsJmsAhEDPpEVwUSiETKXnp 1q6Bq9Yc0TFJRadR6ha+ejNgW3VPPwWMiQVOQqT1x21yeNKEhKSDeoEudGM5vDc9pRWG FmAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9Tm/PnicBRv3jIO2QSy6mSdk4ozpZ6BBRdc0A080syk=; b=bUsE8PZ35IMqwY83jev37suwje+6bmzKD+rpk8h5G1RmIY8IgNB2zCEBmuM7bYs3A3 dHcLaM8fAJtn3UBT7mUWzdQhx0I2wACiowvKl8cKiEcicSLWXj/bxH0ravndMZcW09+V m5n2C86mb/4YMqXth/wyywkU5sj3isW8Ud5c3xELeXkdiIC59qdyEF+AhkeU8bE2MgyY 6DipeuqP/obRGU69PGdGhHdpfPF62IHZidfiYd9JoaHPTPFAVHQ8e0emjIWIoCXA3yAP 5uhwD5D+EMmY4kseX4ADWZsw8eBCyc/aPP8+6qmuu6HSZQdxC4lk2GBjUO9tx+pIkEwm 8FnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="b9Y2J/A4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b90si465133edf.484.2021.08.16.17.37.14; Mon, 16 Aug 2021 17:37:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="b9Y2J/A4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235759AbhHQAgU (ORCPT + 99 others); Mon, 16 Aug 2021 20:36:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:34928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235367AbhHQAgP (ORCPT ); Mon, 16 Aug 2021 20:36:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 73C9B60FC3; Tue, 17 Aug 2021 00:35:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629160541; bh=Aqqg/+LAdGFrSRrekR1o1Bc4hvcDvgmePZggkIIT3UQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b9Y2J/A4lHWN/fY7RA9YiZrosX7Hc/solfTM4YpPtzv556s5LzwWHd++nlH0FoQ8C 6W656iv7ivppiK+4vEX9JKvrWn38K1nX/1uvXpdXnAkkhHyr+7xhz/oiK6EesDJlYl i1MS+XN7ozcuIjdk2fB/HSCMxTeiiCLXgvdq0ekRveseCllqDxI+9ktTG9gm6FRe42 REkjrVEimnUnHw0mpnwbCuhQRnQWyfXlC8UgCTSAIsRgcKzVMMNOSd0pwDYoF/v155 EJ6IQRcWUMDpsA3m/57I89zyO9Rd2v3wk2jOup9G5L6fcW2g7JCjFYoD+dR5EwPT/x aa9B6YRJU/rlg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Lucas Tanure , Mark Brown , Sasha Levin , patches@opensource.cirrus.com, alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 5.13 03/12] ASoC: wm_adsp: Let soc_cleanup_component_debugfs remove debugfs Date: Mon, 16 Aug 2021 20:35:27 -0400 Message-Id: <20210817003536.83063-3-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210817003536.83063-1-sashal@kernel.org> References: <20210817003536.83063-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lucas Tanure [ Upstream commit acbf58e530416e167c3b323111f4013d9f2b0a7d ] soc_cleanup_component_debugfs will debugfs_remove_recursive the component->debugfs_root, so adsp doesn't need to also remove the same entry. By doing that adsp also creates a race with core component, which causes a NULL pointer dereference Signed-off-by: Lucas Tanure Link: https://lore.kernel.org/r/20210728104416.636591-1-tanureal@opensource.cirrus.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/wm_adsp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index cef05d81c39b..6698b5343974 100644 --- a/sound/soc/codecs/wm_adsp.c +++ b/sound/soc/codecs/wm_adsp.c @@ -746,7 +746,6 @@ static void wm_adsp2_init_debugfs(struct wm_adsp *dsp, static void wm_adsp2_cleanup_debugfs(struct wm_adsp *dsp) { wm_adsp_debugfs_clear(dsp); - debugfs_remove_recursive(dsp->debugfs_root); } #else static inline void wm_adsp2_init_debugfs(struct wm_adsp *dsp, -- 2.30.2