Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2672369pxj; Mon, 31 May 2021 07:57:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHcDTiwwriUti1USdvJmZW0YJRsh0eFZHdN0y6lSjGpT4TgoH+goEhIFUuDBfcORNJxdY7 X-Received: by 2002:a05:6638:13c3:: with SMTP id i3mr1205057jaj.140.1622473032863; Mon, 31 May 2021 07:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622473032; cv=none; d=google.com; s=arc-20160816; b=LaElUjlrEAPBLmAKCBRQ85SypPvcaUpDPXIUYNITCgGxYfCnnPZhUXacKZ7rd8vNKf gjDUqR6tA/6rixTmHsoO/OU9j+05jzHKM/JsgK4xW6hcufkDxep8SP7c+ew0mTx4oXW2 fav0OiUbrcvFTJ2nu/Gg4wzXBq1aVw0b3+DUOokfX2tb5h/Lt2J+lKSgxnvq670kZ3bY QeNuUuCvhffvaDFdSv+d5j7h54V3SzfpCVi3CqwPfogWRK0XyPUHNKxphDV9OfKCZIRJ e1Sr1Y1H4E3SzmKuREmxnHd7fKKILVqPJ8lMLLmeg/IbH6K812akKkAe5746Fm14Il8H h2WA== 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=43A7LKx0WUNvDD2p+sz+SLyuNKAcombqJK8NAoTbq6w=; b=uzbN2dJbeScIfiehrNgGcjVS2m54Z1kaDTTm46J2ZPakrNtgeN7mTxwGlaN/ZkbWkB +tZ8AK4KtAiYYVC5p76XMkDUIxIUFihsg1PhCMFMsqf3X02JcmM5oZcRj8rKUc2QCb5Y VpHiBCKnluDdee4iOgNHNvT5txNWohINxNS5H1fm1oqfbqiDZaJC7klrHMYV+lfoQm2+ iG6l0nvGZ+3IM72TiAPb1jyZYKbBOBanKPggnLQ/kt59Kd2m0mXj+0q2/Q9N41w1b3Tr CjUgSvqpAPOoNnCsKLlqvN8cjmPYCVvM4/SF2LTq+sFC52hWnAtK/TuuIyEy/iGtoPiH 3+TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Mhmp807T; 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 t19si12906494iog.66.2021.05.31.07.56.59; Mon, 31 May 2021 07:57:12 -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=Mhmp807T; 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 S232656AbhEaO6C (ORCPT + 99 others); Mon, 31 May 2021 10:58:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:38128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233445AbhEaOE4 (ORCPT ); Mon, 31 May 2021 10:04:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7F66F61453; Mon, 31 May 2021 13:38:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468299; bh=oDyXkmvx+gQobzupFPp7+JRAht8mlIefsNOkh3GbdPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mhmp807TLF54eNeepjPSeeqSmEK3n1qpt4ScHSau1wBhWgTfEL96rPvbUi31f+/bI lFcfOTBy9kwzNs0p22bPj3d4/jUCsjwol5vPDxkqJyGI0lZG3ddq/tEKT/cM9bBOT4 GBtGTNo5OX+sNR9dOIIsq8NO/UQEJ9B7QO3JTOQY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kangjie Lu , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 156/252] Revert "libertas: add checks for the return value of sysfs_create_group" Date: Mon, 31 May 2021 15:13:41 +0200 Message-Id: <20210531130703.304071429@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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: Greg Kroah-Hartman [ Upstream commit 46651077765c80a0d6f87f3469129a72e49ce91b ] This reverts commit 434256833d8eb988cb7f3b8a41699e2fe48d9332. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. The original commit was incorrect, the error needs to be propagated back to the caller AND if the second group call fails, the first needs to be removed. There are much better ways to solve this, the driver should NOT be calling sysfs_create_group() on its own as it is racing userspace and loosing. Cc: Kangjie Lu Cc: Kalle Valo Link: https://lore.kernel.org/r/20210503115736.2104747-53-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/net/wireless/marvell/libertas/mesh.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/net/wireless/marvell/libertas/mesh.c b/drivers/net/wireless/marvell/libertas/mesh.c index f5b78257d551..c611e6668b21 100644 --- a/drivers/net/wireless/marvell/libertas/mesh.c +++ b/drivers/net/wireless/marvell/libertas/mesh.c @@ -805,12 +805,7 @@ static void lbs_persist_config_init(struct net_device *dev) { int ret; ret = sysfs_create_group(&(dev->dev.kobj), &boot_opts_group); - if (ret) - pr_err("failed to create boot_opts_group.\n"); - ret = sysfs_create_group(&(dev->dev.kobj), &mesh_ie_group); - if (ret) - pr_err("failed to create mesh_ie_group.\n"); } static void lbs_persist_config_remove(struct net_device *dev) -- 2.30.2