Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6241489iob; Tue, 10 May 2022 13:44:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRe1rTcKwtdlLgbtgMkND/GSvj1ACn4obFrNDR3OLPRL19mCvTRdG053dAFsj8+O/9SLP8 X-Received: by 2002:a17:906:58c7:b0:6e8:3ceb:58e7 with SMTP id e7-20020a17090658c700b006e83ceb58e7mr22015912ejs.384.1652215446605; Tue, 10 May 2022 13:44:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652215446; cv=none; d=google.com; s=arc-20160816; b=t4HIQxCQSIOii14YLYlSB09Zd71smFcjqDvpYvo7Jt3MLMeDImcg3BLH3BsKrEUzDJ Vra5uQPs5Z9BO49DtmPxbs0WPyD35kockXVpgfWjUql7LAO8D33pKCM8l474yEw2B/Gi ob4w3X/XnGFgytfyWBSMUw28v/VaGqnsYvxw7PqAQN4xkl3oPPTFqo6Mx3HxUAdR2ktw ppbqJS+TF2CNTCcHU9DPr0YXODz9aSVL5v9CPeEyffs4RkROJN6ZKtBuMsOItu82J3m3 Ml0gJhY9qLQ6JnE8rDHaRvA80yHCIMwqdvDCmha+L2XEp5Md3z97NPp2v8qyzF01G5iy w3nA== 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=s9rcMUTJ42C/tCXQeH8oOmRvkMPUdwUjiaJrzRuYbfc=; b=RtGfjv/PR25AgqeXmpyM2g7sBIUpKPMLEHPXCVGNq7yfKcTGmQO0EOM1u4rbAA8h31 pUvSqVGCmUokqfLn4Csl6somet547nOR3XLYhFKZSc4Z7Vi7XkMb8+RONOpr8fKSkbTc 8W0L8lfBp1nz/k6MUbzCzRnO8kRajwej6V9fg2zVyIU2+tNom24mgwdyCc+m1wDRZKtd wDBbLYkSkdt5Q7olaEvBp8jilcj8yvNBml/XQYkX+JOGlt+QJtr27I3Oa7WvNE62+oq3 YjAXedcFJyvISrNljXISQTZIjyHMEouYjUadG3v51K2kUMSrCMa5PYba/po/Zl4tMskR q6gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DCqEiWCf; 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 sg32-20020a170907a42000b006df76385bc2si384009ejc.98.2022.05.10.13.43.42; Tue, 10 May 2022 13:44:06 -0700 (PDT) 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=DCqEiWCf; 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 S1344927AbiEJOcW (ORCPT + 99 others); Tue, 10 May 2022 10:32:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343955AbiEJOHW (ORCPT ); Tue, 10 May 2022 10:07:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52DEC1C06F9; Tue, 10 May 2022 06:41:29 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 58414B81DA0; Tue, 10 May 2022 13:41:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96661C385C2; Tue, 10 May 2022 13:41:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652190087; bh=CvPKW8GRBCllmv1GPycQLudYR03UIUxGKRWDVAVIx0o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DCqEiWCfUHvirdim/9hnItvKbN74fG9ukZHwNoFon3/3vFqwSn1aRghOkR0S1EaOE Hj1JGvnPa3YD8pb3qAwUvAHQG10+bkCsbC5wovdKmV3VxsAlICRkVTLqUGgGy11ciS mwWEs0hkNZkYIvFvL3W6OwE8t0sw69RB1c3ibYG4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Niels Dossche , Andrew Lunn , Florian Fainelli , Jakub Kicinski Subject: [PATCH 5.17 087/140] net: mdio: Fix ENOMEM return value in BCM6368 mux bus controller Date: Tue, 10 May 2022 15:07:57 +0200 Message-Id: <20220510130744.098673105@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510130741.600270947@linuxfoundation.org> References: <20220510130741.600270947@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.7 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,URIBL_BLOCKED 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: Niels Dossche commit e87f66b38e66dffdec9daa9f8f0eb044e9a62e3b upstream. Error values inside the probe function must be < 0. The ENOMEM return value has the wrong sign: it is positive instead of negative. Add a minus sign. Fixes: e239756717b5 ("net: mdio: Add BCM6368 MDIO mux bus controller") Signed-off-by: Niels Dossche Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli Link: https://lore.kernel.org/r/20220428211931.8130-1-dossche.niels@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/mdio/mdio-mux-bcm6368.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/mdio/mdio-mux-bcm6368.c +++ b/drivers/net/mdio/mdio-mux-bcm6368.c @@ -115,7 +115,7 @@ static int bcm6368_mdiomux_probe(struct md->mii_bus = devm_mdiobus_alloc(&pdev->dev); if (!md->mii_bus) { dev_err(&pdev->dev, "mdiomux bus alloc failed\n"); - return ENOMEM; + return -ENOMEM; } bus = md->mii_bus;