Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp635416pxv; Thu, 15 Jul 2021 12:05:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO5LmJ5q+g0dDY1nBxYs6GpoCBHsemBqPhtUpCNIlWA8ETBWfYbMTgSekCdxC3zekpcFzz X-Received: by 2002:a02:2b27:: with SMTP id h39mr5403316jaa.62.1626375931906; Thu, 15 Jul 2021 12:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375931; cv=none; d=google.com; s=arc-20160816; b=m+PPrsnGbBpRidWEbxPq/AbW3VS80wQAidTs882FFlSEs3EQ/W88v4OljA0woHYZZI 1ZqT1Y3hF/2prMaZxwU/HRHGuCNkxf32G/7GkyZVzaUDnzb2Q7roq+kfvIA10U7XqRZU O16ScNWlLIjawvEBoU5yq2faS+7v7lo8VFaOWAO3jxm7BC3hWUYIYgWSH5sxjZKPNrir Wfub59obG0+hZNc8IXxFx01AVXaXgRRGCcGw5RKqBBZxaBxb0wQYnvCx08D0lRT58Fm6 cGKFc9wRuRdjvk6/xybKZhuRa1/MynlyHhdeI18nTfKdZ1jRSbgc89KECdB4lKVcJK9H Cw3A== 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=PvJJckbcxylpIWE1Tg/FUigEGEr3dFPto5GIDgyiPGyaF5ZPHBLft2xwOxkKHxhoRD ijZfbb9yE2l8RwY5J0XR2IEuhuMJ0mBUegKIn6luQoZULqgI8HpiorNWsxbZXLqsL+ww Yjf25gNeiKFjkYyhX5XqROEgNsDsZlVa+WG9ia2e9TK7V4WoGFy8s9s6SZTIkzS3a95S 67nhbumIxLbk1w8HbyygIAEpZ/MHzuJzw3QTdCOWTA5uLlC4co5+4BsbjI03zu/dE5hh np4tT4Slfcs5oyWxSeew+3/BaYM6QeXtD1CkslP64WmPcXIIOnpBEHfFWf0nn1urEgid WVkA== 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 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si7663400ioo.61.2021.07.15.12.05.19; Thu, 15 Jul 2021 12:05:31 -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=@linuxfoundation.org header.s=korg header.b=TZmB4vfm; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235535AbhGOTGu (ORCPT + 99 others); Thu, 15 Jul 2021 15:06:50 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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)