Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1776198pxp; Mon, 7 Mar 2022 02:03:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoEex3XUBSx/WQ33YNU7TGK4LjkoyTjt/jyrSVwtjlXFb93ng2BSuDLbx2+7dF+EKyXC4W X-Received: by 2002:a17:907:7244:b0:6db:1487:e75 with SMTP id ds4-20020a170907724400b006db14870e75mr4705294ejc.467.1646647407530; Mon, 07 Mar 2022 02:03:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646647407; cv=none; d=google.com; s=arc-20160816; b=vEG+UtPCpQ2hR7shtRvVofGrShFvzoLca0sv65BkKpvaLaMkoyIGhB2iciqpbnbesp PVbQoVgwDY2CSju5aEQijPO1MLNzqHkeIfrM90HntH/gS3EjPVNJaPXLKInTnX99vqd6 JTxPxajxMziuq55Jtoz7Vq6rRXDTqpETDR/dCQrRbKOKgvPPji9LKSJBB4d7mxGyvmUI 1+78VsNxBGFVF5WrCBvG80mv842DuyZu4O2tBsneTL5nuekppCobkc3ESl+6MZJbfgN7 ieW+0mjpA4HwWdttF4l9odlJ0p+LDspj7zZxGSmZ4BX20sJdGyTEzKko8cIgVz9Z0OeP Hd6g== 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=3zwaghdYLN83IZWcussMoKeUhSJ2XhXHfl1yUpkHiSA=; b=qRb5Le+KbRufNMx8kJkFWZP0Essn46Yplzb6Lxtg3iX0+yFwt9rP1RiDorV8VHKFt/ UxS0v5NCXm9H1dmBeYEdrlijvkoTD3mDaWIlArthnSjcaPjgzscq6BvJiSeZ2X8Ztsjz WMR+YdATtVAdO409QwUmyMhZTBU/S9NIgIN4tKO3P5efLEx2ibUQcKI6A6fCP0dxWqy6 2xPL5xqSluzMqkBJw/7+X9Q+rlJXroNcbUQKZ43IFZtyCaoz6Ljefzxbq2yjwk+X9D+z nHwXCAvk7W7JSMWPtmq//5qg9E9C+GRUzZ5EqnTxw+xt+12omMIKjxXYdtU3wRfqqy6d tFpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fGVjRV11; 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 hq38-20020a1709073f2600b006da636443a9si9682357ejc.301.2022.03.07.02.03.04; Mon, 07 Mar 2022 02:03: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=fGVjRV11; 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 S236974AbiCGJ11 (ORCPT + 99 others); Mon, 7 Mar 2022 04:27:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236699AbiCGJYZ (ORCPT ); Mon, 7 Mar 2022 04:24:25 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09DDD58806; Mon, 7 Mar 2022 01:23:24 -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 56FB761146; Mon, 7 Mar 2022 09:23:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AFE2C340F4; Mon, 7 Mar 2022 09:23:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646645003; bh=SaOWSdfpn9CGBVS1B4toCBOUU00mGD5nHWoK8cA+Qkk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fGVjRV11OoUlkfUXarpi689VxaNlTTBfYVtd2b0NBRLPGzmQlU5tSMLtUmP2G+Ctm bczT877njZRnxi78HnmFXHdjEUK58YVJcTypwNb3lzU4vRmE84S6oYZnJNAw9PCmWS FvQ/KVRUQ5Mg2IOzDUlSCVmA1FxDpY0WI2xvWXRQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Randy Dunlap , Igor Zhbanov , Siva Reddy , Girish K S , Byungho An , Jakub Kicinski Subject: [PATCH 4.14 30/42] net: sxgbe: fix return value of __setup handler Date: Mon, 7 Mar 2022 10:19:04 +0100 Message-Id: <20220307091637.029989429@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 50e06ddceeea263f57fe92baa677c638ecd65bb6 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: acc18c147b22 ("net: sxgbe: add EEE(Energy Efficient Ethernet) for Samsung sxgbe") Fixes: 1edb9ca69e8a ("net: sxgbe: add basic framework for Samsung 10Gb ethernet driver") Signed-off-by: Randy Dunlap Reported-by: Igor Zhbanov Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru Cc: Siva Reddy Cc: Girish K S Cc: Byungho An Link: https://lore.kernel.org/r/20220224033528.24640-1-rdunlap@infradead.org Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c +++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c @@ -2282,18 +2282,18 @@ static int __init sxgbe_cmdline_opt(char char *opt; if (!str || !*str) - return -EINVAL; + return 1; while ((opt = strsep(&str, ",")) != NULL) { if (!strncmp(opt, "eee_timer:", 10)) { if (kstrtoint(opt + 10, 0, &eee_timer)) goto err; } } - return 0; + return 1; err: pr_err("%s: ERROR broken module parameter conversion\n", __func__); - return -EINVAL; + return 1; } __setup("sxgbeeth=", sxgbe_cmdline_opt);