Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2743269pxj; Mon, 31 May 2021 09:37:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmEpx71ePKFx37lhhtgJK7RhyxHD7N4JdWDwkGuYFnH0DwjNr8goJQ80bjkbOVAbvaZ2q2 X-Received: by 2002:a05:6402:645:: with SMTP id u5mr6329244edx.293.1622479029622; Mon, 31 May 2021 09:37:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622479029; cv=none; d=google.com; s=arc-20160816; b=O/pm50ml+3MyUShV3LtGejjvbuCXeh+GoXY2O/1Jlf2yTzlDvnOVbvzVDxsCpYnTZe +KmVpoi0/U73g1fPD8hvQuVOz4K2FcnDN24ZdDT8SOD12E3QcjQmrgCZMOq03/rRhE9x L/V/ll4mGJti9wcroDSOLMHA2H+Tf5LbswhxSuI95l3xRvTWF2Xc0lazQ67ogESe+UmA uuccNM9MWEw/RIdcphGNy0And6Ebp/el8jlmKkqoi0mA1YvMa3MeKSyLUs0LESk8JhDI cWjMqOemwjdfYBFMMwcAHV4bhzZtpO/3eUtcg7p+4NU1xjEOHOj6kDpTZTcHSX3kkpPG Op8w== 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=pAdEkru0m/Yk5/Yql59J08pE03mOT3ZFXc8tl3V9ngTTGmDct3PFnHnrCJFedaf+wb TZRvHh4JGjbnZYCRPvsVv3Uqo8vMcCvzkXb8A+lwRWVk6uE/z119cr1KjoxMfv6oErQp brk5v0I6yLPknx8UdloFI0fB99WkhJ6WPUcpq8+E2YsbjAOT/OXqZDJinv065f4rTF0T dPe5U12u6kg66DnI7w53LbAhYJUxd3LAWw7C45qS2nugngLIw+5r2+8FnFGy7T4xhJ3a hx/AlrE3eUtHyd0bJwHIOm9/fFSBhHjd9Xb79+uti86dzpk045KyIlsh9t/LdCMRoxPr Dc/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mkmECldB; 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 g21si4094264edu.34.2021.05.31.09.36.47; Mon, 31 May 2021 09:37: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=mkmECldB; 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 S233671AbhEaQh1 (ORCPT + 99 others); Mon, 31 May 2021 12:37:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:40320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233984AbhEaOtN (ORCPT ); Mon, 31 May 2021 10:49:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EA5226140C; Mon, 31 May 2021 13:56:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469405; bh=oDyXkmvx+gQobzupFPp7+JRAht8mlIefsNOkh3GbdPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mkmECldBmB+UjkJLzixyU55BCcWx21t9hf/yW8nJBAFAHct5vFzGE7ReRIWJdEzDg VFnhlLSWy1SDK+ixZ8Aon6Z/Mv3TapWE1s0CqjZu5OEBBCzkFu8fCy9IsrrUeP1AMZ RVn7T9mzTQ4ul7V7+JGleyEDQ5SGOHws6/SQG3Ig= 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.12 186/296] Revert "libertas: add checks for the return value of sysfs_create_group" Date: Mon, 31 May 2021 15:14:01 +0200 Message-Id: <20210531130710.125514808@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@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