Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp713237pxv; Thu, 15 Jul 2021 14:12:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3yNDc2Uq77zDGZYDRsJ3u74YwIfqybfm8cn/Y0tySn3CE9uvnOGR+tuuINsMMznIv+0O6 X-Received: by 2002:a17:906:6d0e:: with SMTP id m14mr7781133ejr.551.1626383529141; Thu, 15 Jul 2021 14:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383529; cv=none; d=google.com; s=arc-20160816; b=roZEP5jaGtJFTkx6zREfmaWpio593sPSnBtHk8kXM9wbL2iyoRBEBmOF59PJHwekOs uMSYSsSRAGkzaoNw3iyAOty8sh+fr7n0UrTX5r4AA8sJXOVLUKFB6FNmYf5zrMmxb4I0 R/zWMUIDUp2UOcDCynRCSE8n0LQhgG/y9rAEtTJT9lyoPuRXwJbtxK52pOaOEcY2Efm+ gNQgwrxhFyYMhQhIJZX/zzxR8M+rotPfLsAd1WNnJBzYT6Lspx/PPR6iZiXkewOZqftF Ahn934KBUso64qIPO8Jz1jgmwqsqsj7Io+EadVokGhJZuIooz8+ZqjufadVwjgIlsPwC 2iLg== 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=OFC2O8ocm8pJGeF6p0xOkmW6qJ0IAxKEKfXja0eanKUHDH5bQUjsTIUCuAaCiYMJ9q 9AStDdBmFgCNq2KSHbRBiNBTUpNFi2xJ/79WQWZwPD//XWOpaWbygGyuNBUqqo1EieA0 fU5OSTQlU/7ULlRlx48yOkKnOShlb3E5wk3iRJGK6JytalDVVr0nV3wRPUPsoo5Jz3Ry BPnXjUIdCDuC9FMjRcuKR9JFGKvroLGgUkX2ZXU943vvJeIj820lVXf1lmszKIZ2CQQh dslZrR+weOtSbKAky9tZIT0DTCsqlWFbkP2MqDd0tgf5YmIvkvATJ8sIpbHJI1D5j5AP iNDA== 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 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 h17si1131700eds.168.2021.07.15.14.11.45; Thu, 15 Jul 2021 14:12:09 -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="g/RZ/Iuw"; 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 S243537AbhGOTW0 (ORCPT + 99 others); Thu, 15 Jul 2021 15:22:26 -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 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 @@ -1367,7 +1367,7 @@ static int coresight_fixup_device_conns( } } - return 0; + return ret; } static int coresight_remove_match(struct device *dev, void *data)