From patchwork Thu Jul 15 18:39:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 477446 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp562148jao; Thu, 15 Jul 2021 11:54:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyO0g031470YllODArcQfnB9YdEibxmknkoj6lTr8AeTQuSb2ry+Bq/agwgtCs0IKpscIZ X-Received: by 2002:a17:906:95cf:: with SMTP id n15mr7002766ejy.531.1626375252393; Thu, 15 Jul 2021 11:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375252; cv=none; d=google.com; s=arc-20160816; b=y47wv15mYb5zyjSNsNAYyDUeVBPzjoPpVkUSr/yAPB2RMkxRY/wdgpdHX76ubhXkvq +NDSIKw7PrlSUszIkdR90dB85kNT6xJ6l8nBdXSYJ6VtPJZgU42g5atFhbck2y57sswR HnWandE8MIYmWNksUOpS9wCTutoqdcVIMH5JX2tcyQYuaFGgll+4NTDpt0qAJY313Sx+ Ree9qo0Wstl3B9MyY1KK9gbeb48zygksJAPz2B0gmyKQbsms2vtm5P0uktepucA1/L9x 5hyolbC4H7ajOW/OdAXEmoH+h4Dk0yhrt3G6K6OwoZdmILe34xslIjr9cUbT8TzX2fIy I4tw== 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=7CB7No6CxMcoJ1mijWD2Gffj/1b4CW46UfP5gkTq3fE=; b=iaeodorPdeKs2rNOaftKu52XfuDsU8yTw8D3sTbfcrbVyP6Mc3tSvtjOXhJYv9rGJs bZ8Tm7yNabjiDypjz+NZuKEq4b+w0/+h/mByH/F3U++yeezmfdrmWsC7f3SLItpojGbO rRXTN2JCS1f72kMpsVWFKKH9yfBFaP9uJ64l7IVD9LZpjcXuikI8trdhey+qs1eGBzyY EdAH4/GR+cey2bSXw4XYsjec48bz29c4/cblrqbdIBMsKxJlxHQYb8+2Gehp0UHs4i1l LLFeUV75ku2f0AYC8XS00zUvCetTdt4+iFMyZldiX4oQMdILMyI7ihdTLARblLEGM7gt Ff1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TZmB4vfm; 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 g22si8749250ejr.559.2021.07.15.11.54.12; Thu, 15 Jul 2021 11:54:12 -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=TZmB4vfm; 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 S241490AbhGOS5B (ORCPT + 12 others); Thu, 15 Jul 2021 14:57:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:33198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241166AbhGOS4f (ORCPT ); Thu, 15 Jul 2021 14:56:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 699DB613E3; Thu, 15 Jul 2021 18:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375218; bh=/xAl3+ufaRYvViM9X/jH9KVK3SbaGpRy3LXtVJ1+Zs0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TZmB4vfmZvUFQTY+cYHnTxBtnQu+60c7dXiQcOUi8tTNiFYWCoBh6u51PCKM9x8YP VCXMD5K4kN8IFyIhnPBNrIaxmvOf1+/nw7m5+eyYmGaQQPDIRWgm1bYEN3bVkmhxEb f8nWrgmypcT81kjb8vMq8kt2y19cm82wtKPMRXRc= 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.10 193/215] coresight: Propagate symlink failure Date: Thu, 15 Jul 2021 20:39:25 +0200 Message-Id: <20210715182633.257572675@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@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 @@ -1347,7 +1347,7 @@ static int coresight_fixup_device_conns( } } - return 0; + return ret; } static int coresight_remove_match(struct device *dev, void *data)