From patchwork Thu Jul 15 18:39:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 477455 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp581336jao; Thu, 15 Jul 2021 12:15:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyZKTqx/4dbZVMHeZGVzdp3RfuA5Hv62smnGQKrbYVLqfYdD/ZRV3ug0VIhd6cuyZnt+Za X-Received: by 2002:a5e:d911:: with SMTP id n17mr4403277iop.178.1626376525504; Thu, 15 Jul 2021 12:15:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626376525; cv=none; d=google.com; s=arc-20160816; b=SEeqZBPGcFaHmyYsezAQRm2cOSdoPf2+LZI8s5cOEnmxSrbNN6jGdWbH+315V+KEF/ 9rMDa3pryqT4s1xehdeME28SRSOQSQ8NWFk5nMZzOyaP2VAk7FiX/vVDLEozYW57+YG6 SqsL06OilOXEIuG3nlpHYwK563z20oHxjtZwNpbubSdvvaVbFUVqljTKkW9wdOwFKXpk 4EmIUkP1lF6mswDdjnb/6fnumK04cH5Jc6ORBA2PcTYyDbeG7+oHb8TkwMz2Rrd/yjXg o3ZpGMwVSqNOxNpVj29XlsK2Kdlz5srPAvaNdQYKcyXoPelxk3QNZVOQWH8z4xDvT1mQ JWsg== 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=5QHLq4l/7qCxAKBU9jlRmARuPpUIYrSuMWyb1l8JLvI=; b=ytAIFOdHmtkcVP1o75srvgM8dgF+opfHKHkQxGYLo+4A7c4iZjx08spfXM5Ynt905r FyGrfsn3Mljx8Lo49nbsIIPsAhax9HW/ZNp2dEaoDuETga2pmAcKBNMLfMas64bXYNB/ 6PO61oTB9xy3HYT+kafcsJX7wTvIo2kBD8YAvL+cIVFKxbGQaNyApvpt74ayAV1gL93w UM4p/WP06AlVoJJ5td2Wtlvfv4cGb9UyX64Ziai1CvfxZxow94zBdUrLoXnD5jJSB+ft qH3MzIc5fKPOBt/HGAWvcHQWVoQeFWN1oslwZPThvNEaIUhnGjezfdK1aXlmZyC+OLpn 0+5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u7IvsSsr; 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 p5si7947662jal.76.2021.07.15.12.15.25; Thu, 15 Jul 2021 12:15:25 -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=u7IvsSsr; 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 S244445AbhGOTSN (ORCPT + 12 others); Thu, 15 Jul 2021 15:18:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:51430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244642AbhGOTQf (ORCPT ); Thu, 15 Jul 2021 15:16:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 16642613DA; Thu, 15 Jul 2021 19:12:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376360; bh=kh6xMu0riarywR/8VQzC/9VScbXvZzz5mIprlgA/my0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u7IvsSsrm/ThKW879KyfzUVGRCeFJrcX391gGDu+OTIxIk8cSxMjxIoD/QIYvjdYm 2eypMy+qnsX6tAKW72bBzSDhJSyiFSix1Vc1f8SxgD1xSsM/HHq+eTvNdLplLPemnH glD/lwrI/ovHDK0XFMfdiETwmKY2L9wtRFXeGY7A= 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.13 237/266] coresight: Propagate symlink failure Date: Thu, 15 Jul 2021 20:39:52 +0200 Message-Id: <20210715182650.691908855@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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 @@ -1392,7 +1392,7 @@ static int coresight_fixup_device_conns( } } - return 0; + return ret; } static int coresight_remove_match(struct device *dev, void *data)