Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2706160pxj; Mon, 31 May 2021 08:42:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoYH0x7TgEwCTlPplqJT4HhWVTAIcZsHN/cSNV4goISDbR8vFz3dn66HYCyYDk4T807CaT X-Received: by 2002:a05:6402:3513:: with SMTP id b19mr25853351edd.137.1622475758420; Mon, 31 May 2021 08:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475758; cv=none; d=google.com; s=arc-20160816; b=k+XrT6kh2QLhGwPJllKZN1hF3EY1hPbY0FWrxJWdGGsQYZzfg3dMXCicBWiKwUl3ua s88J4xpmJjeV6bXhxwtGIPnJxnJ2FOpQaagFj8PsWYtj3Jb51GJXqGg3WL8O3NJ3Emks W8dOBLf/raKLvNnI7pwaEN92UI/Z78NaitaxRlY/eMzB4eA0qVBzu13OyxpQ5tycDRt/ 4XR+6kJho33efNf0Ke6GOZsbJZZsx46533NN6nuGYudyBdnna+ciZFiemZG7ZHQOqVYG sI9f/8hzkSnLp2a/Sx/DA8DeefYpRbgLeVvd3hW/T6rBKE2aGbvy7RNU0+G6E+zgq0cK K3PQ== 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=qRpgNDVr1mDG2iD19HIlGMAUfnqEVI/XGADUAoZ3Vzs=; b=HH+cHFWZ3fflwjReS2cQbQqGJMPHbGljIQeO0RXuSI/dq32LzgphjHbAwFVWR23fkz VX6qSeTfts+DVCgNTUK52Rnhig3WMy+Vj/sxUieYgxQwTvt4dJBtuaafoN55riKD/Cj8 Rqrd+6Z6c3ktzaA5fHhQFOtb9RivcAHzUT3aANiWGa9TwU1htgpCWBudIZi0VBf89D21 renE9C/S6Qh3IHvp9zFB8DdfGNFrKOJsiYs4ufuLy2sU5MD3cmuMh2DGtqTPeQ23wADM lpelAKm32Pyjgmw1uhOwEXvFoTTIiyNEK1xviNbQGKkxkAZfLnGF0KmnjwhO0kujpGc1 XLsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nVfUf5pj; 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 a16si3322488ejb.149.2021.05.31.08.42.15; Mon, 31 May 2021 08:42:38 -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=nVfUf5pj; 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 S234985AbhEaPkj (ORCPT + 99 others); Mon, 31 May 2021 11:40:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:46126 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233472AbhEaOXZ (ORCPT ); Mon, 31 May 2021 10:23:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 71173619C8; Mon, 31 May 2021 13:45:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468739; bh=Pla75ePXqOjm6vomz35pFb74Fd8RlTdglMiFbCbmQ5E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nVfUf5pjJ7zG94ATpEpxKByWu+312iJjCzaa9hP055om9SjwHyMXTfMH9isgdbBVd sv5shcOyEQw7Ys286QirZOcxH/LFPaH0cAYvxZuGvIGTnrcn7nMq3YZO+LRWg5QaMl mYdOBKnKPm9beFHkzBsptoYwwr5MzOH7vv/hXYoI= 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.4 109/177] Revert "libertas: add checks for the return value of sysfs_create_group" Date: Mon, 31 May 2021 15:14:26 +0200 Message-Id: <20210531130651.676252546@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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 2747c957d18c..a21c86d446fa 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