Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1776272pxp; Mon, 7 Mar 2022 02:03:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgjw1V/T69/u2b+CRfaqwZPf7pk9gNW48So0Vj6y+OvtsWxdCPenyAYgglb5dlOS9Qo9u6 X-Received: by 2002:a05:6402:11cc:b0:40f:b100:492a with SMTP id j12-20020a05640211cc00b0040fb100492amr10232706edw.282.1646647411814; Mon, 07 Mar 2022 02:03:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646647411; cv=none; d=google.com; s=arc-20160816; b=nY41t0GjbKIKtM9k4QfhN9JtmAdPcxYv6jPj+l8f+1UoCpAWfiCm56N7OJz2Lk3dvv oFzqstKpCkorH2kGtrEva/oKyOvCyGQRfZtQNINSvCzJ71PxYQbWDleGM/NPQBrAUh9p Xex5oGqKsGPwsW+7kt/QCkU/rudzIOj2LfSjPEJadiTUrILw16jIliXrQXrBZTxrj5Ki BDUIFfWCnfcjgEvqsE2Ft4lgqzLZJoCEaXMWF0kg5Wja2c/pZlXRuVGXiLt6CaMqSWwI UEbBaBW+wgNSLuTJrkhfi7+O7FNroPvffjvJhV684TDrF7Zpg0+f6oGR4ADEhCn/+IvM ph1g== 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=qaoLMiMNJQ24MPxAmJvb7mXFJu16BVPOUj5ogCHAisA=; b=dAWfmuTM/yt4NLkvCgU0vPD3D446O7B1y9k1/lWxtRVxKD/OKm0GEL8OKASozaJBtr ezdwCDmonLRqQBvgKfzxCEB6pEz+yJmIkVmipYuk51fWk+pqyv6GZHP50ildb3+N63XP 5WNL2frf1YKW4RkTrBiViNzt98kO8WGqVQ+4bRyI3EqhbBRiOuRxVJlaRT/XStYU497T AQnO4gfUMBypGIslBQerVqZvsCiGcPmnSqiIVDhRKYQON5zBxAL3bbM03Op+uczzQvlW Mi5/2ylXWF3r8Xc6gQ7COQI3x8yvqR+8EHwA3cCFsdxpVuDyK5gDnF3EE4jRTr3P7bu3 8g5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KnFFv1Rk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q20-20020a056402519400b00415d7a53df8si8878116edd.539.2022.03.07.02.03.09; Mon, 07 Mar 2022 02:03:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KnFFv1Rk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S237106AbiCGJ1h (ORCPT + 99 others); Mon, 7 Mar 2022 04:27:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236650AbiCGJYR (ORCPT ); Mon, 7 Mar 2022 04:24:17 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00C8258382; Mon, 7 Mar 2022 01:23:21 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 622866113A; Mon, 7 Mar 2022 09:23:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69319C340F7; Mon, 7 Mar 2022 09:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646645000; bh=z6HjUXSLau7wzFifNIWNvi+IufkwGy+566WAkZsMxDA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KnFFv1RkqxZwa+LuyBx37MpDmrOeN5rDFR14hl1oU7k7G6e74mR8J5vnvfm+XtKu5 F0jxp3wAXjAhoNRiNNIYJc9UNlIU3uJCoDsaG7Wirhy0cn8C7fcjf8KHK64m140Cqh exaSLjKTssZN5n6xbAbYZu8RwoIiB1XoF4epSpm4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Igor Zhbanov , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Jakub Kicinski Subject: [PATCH 4.14 29/42] net: stmmac: fix return value of __setup handler Date: Mon, 7 Mar 2022 10:19:03 +0100 Message-Id: <20220307091637.001107391@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307091636.146155347@linuxfoundation.org> References: <20220307091636.146155347@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap commit e01b042e580f1fbf4fd8da467442451da00c7a90 upstream. __setup() handlers should return 1 on success, i.e., the parameter has been handled. A return of 0 causes the "option=value" string to be added to init's environment strings, polluting it. Fixes: 47dd7a540b8a ("net: add support for STMicroelectronics Ethernet controllers.") Fixes: f3240e2811f0 ("stmmac: remove warning when compile as built-in (V2)") Signed-off-by: Randy Dunlap Reported-by: Igor Zhbanov Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Link: https://lore.kernel.org/r/20220224033536.25056-1-rdunlap@infradead.org Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -4550,7 +4550,7 @@ static int __init stmmac_cmdline_opt(cha char *opt; if (!str || !*str) - return -EINVAL; + return 1; while ((opt = strsep(&str, ",")) != NULL) { if (!strncmp(opt, "debug:", 6)) { if (kstrtoint(opt + 6, 0, &debug)) @@ -4581,11 +4581,11 @@ static int __init stmmac_cmdline_opt(cha goto err; } } - return 0; + return 1; err: pr_err("%s: ERROR broken module parameter conversion", __func__); - return -EINVAL; + return 1; } __setup("stmmaceth=", stmmac_cmdline_opt);