From patchwork Thu Jul 15 18:39:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 477451 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp570799jao; Thu, 15 Jul 2021 12:04:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbveV89o/bpbi9Zrc//CK2ALlk2oK9LIO91ptyuh9IZrXYNCy2RPt7+Z95fQ3OtTlq4EUj X-Received: by 2002:a05:6638:1350:: with SMTP id u16mr5294334jad.19.1626375845314; Thu, 15 Jul 2021 12:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375845; cv=none; d=google.com; s=arc-20160816; b=QyK1N5vfG1FFV5Ofb9gZh8gs+e9Qz191rRikJUykvqx0zCJKijCbOhptXgWiS43153 M7I/3BolAU6ZloW2PMPE7ul5/cZEeh2a6uoujOLmORBwND41haa6Vm5suFayfjfwpxK/ tChcn97I3Ue9DgY7GmkoHbM6yrqW3v0AW9YIMYxL1vEvOeY+2ugm81Vgtid1Lj/hxqyW QpHi4v4P7zRALc2Zwhob/YEKb52viFDhqNRNzqwFswsJ8A/Cq5eQYPGvB4XLIQSAHdxU L7+N7pXQ/0qFb5ZBO/KlAkckltgiaf9soJcJcVvyIxoq8nu9qxMx1XuDvApea/VC/7ca 0pmQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=33/QZtqyLJlSzqDzifk+WgZ2xWi7AqaYCk36BlNXWNY=; b=iXYtz5aunQy+vrzZrooQ0lhvwHSU8asjOowDVjg/vLABRCT+h3urGCUebBqObiRH2y tV84rzFiRvXYl6JVPVN827eNpPA77qzbnUb6dA+12wtR15IcqlLhgRCCRvcRC+36qqZJ Olvm3yGiqEyvmfUJa8tr2/NRDQ/bQD5ZoBHhn/Vj7GKKryjMfHgAYXg0UmSnRn1r9H3m sbnQoPa8J8qy3LShhVoKP6tcpZ5PbALbC4VGYoowzVAs8PTpi3vPKnLFO3tPtdbtfHpc bBJ8s2oeDYncBUImHdV7f+lhirRk6F6zV5EZItPGvc65l6r/jixRYxJuS/hRpuE5nOBH msrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="g/RZ/Iuw"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si7650284jan.83.2021.07.15.12.04.05; Thu, 15 Jul 2021 12:04:05 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=@linuxfoundation.org header.s=korg header.b="g/RZ/Iuw"; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241183AbhGOTG4 (ORCPT + 12 others); Thu, 15 Jul 2021 15:06:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:38800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241438AbhGOTFu (ORCPT ); Thu, 15 Jul 2021 15:05:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3D15A613F1; Thu, 15 Jul 2021 19:02:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375731; bh=+KNdvSiSTwrRQseY2ACMiYBWQDELdkM7Ft8ARJ2W67w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g/RZ/IuwQL90s2SVkRLnbad9ZZzaLEeUsFtqoXgeTBBhpm6WtYHLPQ4w46l7wuCQx 3288wYN81HAeECyCatsI0pgIDcDDFJq6qZFfTk6VBklm1eh5g4ZcQi+BNHHjMvb+t2 bT7dIbYSehLX/e6rmosYCATJLCqxoLvy8Gy/+wUI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jeremy Linton , Mathieu Poirier Subject: [PATCH 5.12 213/242] coresight: Propagate symlink failure Date: Thu, 15 Jul 2021 20:39:35 +0200 Message-Id: <20210715182630.681224360@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Jeremy Linton commit 51dd19a7e9f8fbbb7cd92b8a357091911eae7f78 upstream. If the symlink is unable to be created, the driver goes ahead and continues device creation. Instead lets propagate the failure, and fail the probe. Link: https://lore.kernel.org/r/20210526204042.2681700-1-jeremy.linton@arm.com Fixes: 8a7365c2d418 ("coresight: Expose device connections via sysfs") Cc: stable@vger.kernel.org Signed-off-by: Jeremy Linton Signed-off-by: Mathieu Poirier Link: https://lore.kernel.org/r/20210614175901.532683-7-mathieu.poirier@linaro.org Signed-off-by: Greg Kroah-Hartman --- drivers/hwtracing/coresight/coresight-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hwtracing/coresight/coresight-core.c +++ b/drivers/hwtracing/coresight/coresight-core.c @@ -1367,7 +1367,7 @@ static int coresight_fixup_device_conns( } } - return 0; + return ret; } static int coresight_remove_match(struct device *dev, void *data)