Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1777822pxp; Mon, 7 Mar 2022 02:05:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxcqjeSfuADhTQ2hQdQmwQnJVcBgimzwnMLhb2mfrZ5vwVPomJdCjT0lVjD5P989Dpq3VUC X-Received: by 2002:a17:907:7e8f:b0:6da:6352:a7be with SMTP id qb15-20020a1709077e8f00b006da6352a7bemr8188552ejc.612.1646647528004; Mon, 07 Mar 2022 02:05:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646647527; cv=none; d=google.com; s=arc-20160816; b=ieWUuBVttU7QMnrPv9OzJMJnBQmIMuMg0bbZssYX/gciJg6wtB6e3p+UK0xKvFkQ0e DogDJePgnZW42NOdUAb/fl4aUKL5XaDGZ55rftXTPR/q4hRWE28GWjvAvH6wRWX6D8+J 1k42ettg/c/U6VEOjw3oMiB0n2Huarsc45WJYb0yMxDGcwWJJCMXdRXrrnLDBEQcpLcn kRRbm6v2A16O8apKM1T1eSDcSd24BTjS9ItHSo/R9zQokD5XyIegN8aLcgzKpQ4uZPA+ 22519ojH7PCU29W/a303e59TBqORYn3TWbfdcI2JChD1tc2Gedbts3DEG4+Y8CrW796C OJYw== 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=PnfCmbdDcfo4kC3EGEsakXYAgEdrLJtzTUYdc5WENAg=; b=JI4S3RJ4DGysNaw0213H08Hu9dp/GvkYapGzxUUdw6VGxoKl34fdzFXOIkS7mU1k2g 9wAFtdpF8TQ7KDaX0LB+6GohkRZOJa1q9hYb6wy+YrJBZfTEGRwRqe2e+BwycFLSvLlL znx42aAXCOLK33eETDBuPMXQF2KgT4VNxR1tJ6oN2kLFd4lGOJo6rCxm2xULLz90ueST 2O6AVlDfe2vU+IMqUxhh3IsyQnMDslxuMNydEII2W8gZHqMyY3tuGrYY5JN2dGZQDrff JGtGOLihSIkkBNlYZwzsKE/wSwTTKnzuPUS1psSzzCfI50NlLQT6YghEVq1/rhruSW8L 8d4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N5H6AIgf; 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 z20-20020a05640235d400b004165be66103si545101edc.207.2022.03.07.02.05.05; Mon, 07 Mar 2022 02:05:27 -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=N5H6AIgf; 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 S237351AbiCGJbo (ORCPT + 99 others); Mon, 7 Mar 2022 04:31:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237858AbiCGJ23 (ORCPT ); Mon, 7 Mar 2022 04:28:29 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 914856B090; Mon, 7 Mar 2022 01:26:12 -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 14F846112D; Mon, 7 Mar 2022 09:25:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07BC9C340E9; Mon, 7 Mar 2022 09:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646645157; bh=7EQTP3caDLbMgaMUocONn2EQa/r2KSuWMN6iEvn5pkQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N5H6AIgf+dUlfMhzLNS1T8V2vQJRO6tNXnlnBfwdyNwf6NxIWo1ya9pqd9RaKOGMV XY+NuGyzOsVMnt33ahzqc+7f+iNp86XsSFKX1ifxlt2Pb5l1qDxnQ6gU+FL9crREdX Ieb7/ZhCucc18+tHKp4G2m4t96Fg0yL9AQERhy8o= 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.19 33/51] net: stmmac: fix return value of __setup handler Date: Mon, 7 Mar 2022 10:19:08 +0100 Message-Id: <20220307091637.934519371@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220307091636.988950823@linuxfoundation.org> References: <20220307091636.988950823@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 @@ -4628,7 +4628,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)) @@ -4659,11 +4659,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);