Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1677348pxu; Sun, 6 Dec 2020 03:44:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxnAN51ZXlNeq2UagZd0N8cLpqVXBgN5e8+82zATXNV+9AvuaO0naP4CjCCUCPE9IhU93m X-Received: by 2002:a17:906:a51:: with SMTP id x17mr14978579ejf.97.1607255085334; Sun, 06 Dec 2020 03:44:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607255085; cv=none; d=google.com; s=arc-20160816; b=LocKyUJi6N/zFlqWPHRj2drm3jSosSw8NdFn6TgEXD2E2t7i1fdULGvxrQQPHydO1+ MtM6eUI50PD79zMc8XhpJpCvawKBS3ZP/D+c/Uhz9nELvBomMIjGTWSyuhGj6v50Uynd eqPsZzyT9RSzUiUK/Yb1bbs/dyXOeeq65s0OGGY+icbDlS4ZOcooiQH5rvLiszFKXwGO nBdb23lRD4XMVzG8BCaG/GevH13DYqeD93K2jEtGCh2AftbCNbBr8I+ms3d3zuJ/xdXS kmDsXj0bvsLDFzeYGYf2axWXwH3kw/QFlN6JX6xpqtPUsSVVojp3OhU41PRendp0Y71Y mQoA== 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; bh=CUtWqDGNI7FOuFk6hcS/twwEZzf5KvCD1wu85SviD1s=; b=JnnT9MZD6SX8THYO8w+pPI+cE3c0/9Jk7EoPKPAaoy1fk4NBc+2+RWkeXVW8eblzyF /q8gTyjNKUBeh7rz3fiKlnrkke/3hSbHYnheDIB3uE+h3mx71rDrs1DKzzuoB7xR0HiE 11JVq1Q/mL/MnU6Gy0lqNNWhFCtwfAeSsKFjONlhIzH1Xa4DCsOBQ7YjQITaN7umqGq8 5vzKaaLF8qX+XP4dXMvLqcAnq1eKONRa3+9hEe3czVE9i3iDdrSwLNc0gux7PECS5KQi EwZ9UdYfcgO/98g2b1a/F+1v8daHajdejB+pOzInZXlYSewRlxdhgeA5yQb+mchXanRz Cg/Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 i12si6590657edj.263.2020.12.06.03.44.22; Sun, 06 Dec 2020 03:44:45 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728729AbgLFLlO (ORCPT + 99 others); Sun, 6 Dec 2020 06:41:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:38596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727700AbgLFLlN (ORCPT ); Sun, 6 Dec 2020 06:41:13 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Wang Hai , Andrew Lunn , Jakub Kicinski Subject: [PATCH 4.19 24/32] net: mvpp2: Fix error return code in mvpp2_open() Date: Sun, 6 Dec 2020 12:17:24 +0100 Message-Id: <20201206111556.927482270@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201206111555.787862631@linuxfoundation.org> References: <20201206111555.787862631@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: Wang Hai [ Upstream commit 82a10dc7f0960735f40e8d7d3bee56934291600f ] Fix to return negative error code -ENOENT from invalid configuration error handling case instead of 0, as done elsewhere in this function. Fixes: 4bb043262878 ("net: mvpp2: phylink support") Reported-by: Hulk Robot Signed-off-by: Wang Hai Reviewed-by: Andrew Lunn Link: https://lore.kernel.org/r/20201203141806.37966-1-wanghai38@huawei.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -3363,6 +3363,7 @@ static int mvpp2_open(struct net_device if (!valid) { netdev_err(port->dev, "invalid configuration: no dt or link IRQ"); + err = -ENOENT; goto err_free_irq; }