Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3017231pxb; Mon, 18 Oct 2021 06:41:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEKonzywYtDnxKyJTNwyh8+dlkZkb7iEjuWQNKkRlushPxsdHma1AyQ8oxkPVfuF3WV2E3 X-Received: by 2002:a17:903:283:b0:13f:974a:95a5 with SMTP id j3-20020a170903028300b0013f974a95a5mr17696682plr.19.1634564470407; Mon, 18 Oct 2021 06:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634564470; cv=none; d=google.com; s=arc-20160816; b=FSEsrvrE73xRx3vll7BPf8XDkPBSIwcpwpJ7djv/KONuP+ztlL1g8a6uQRwSgZWaOc sEhGPxZVmu3D+ZaYCegFzoJnOhdmfZewdbVk5AiET6jVbyoBPIuj8AEWk+/+d5vVgzZw cxiff8boe37avaQuPKJH87k7LFF/NBhyl0uwYDpv3XlJre2B2+aqMHDPwAbSwqW2SBHg QCW2Gc7YRIwMvkzxGvwNCI8RlmeZY+OEVWZa0fMv2PK7MHNrzmKHW7YKkzLoa4k0RL41 H012vXQ1W6ktLNIgs2+xFxV2kcbf/AUdmCd+wc/zvXoGrOZvYbtNb3AJo150IUu+IfLT vkZA== 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=xJmOnDYyADfA82bGLnyPg1mzsX7+oOjKX0SMF1mS7aQ=; b=uIgEBC78/Z7cmOfGEOCB7QqcMluChmoWCCwoNsMdQv+VC2gcTlrkwLPLEHgngE0+CF Cuy7e8UlolB/GdJiU7wSemq1XMvYzMTp6ybGeGqlT2dNKcjLkSIjS2zyhaIt4CiumVKv i/yaUbfICSzHKB3FjsOpzpAywAXKAKlD2hLqJwO0QSQurhHKOuFfmBI+9j5MTSZQt4SU U7Wm7wzvLgfXMYo7Fo0UTUI3XL13HsdBkEEk45BOtpYn6gjgcXfJN96uhJeIQZgdtAh6 VmROoeuUcxz4Aw6zmkNUwO2H7/YRJiU0YEt568jbfgOmvbH/SeE3efRYlDwTltB8Oq5W Zzkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hz1xA94j; 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=pass (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 v12si3062119plp.293.2021.10.18.06.40.56; Mon, 18 Oct 2021 06:41:10 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hz1xA94j; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233184AbhJRNk2 (ORCPT + 99 others); Mon, 18 Oct 2021 09:40:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:52856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233510AbhJRNiY (ORCPT ); Mon, 18 Oct 2021 09:38:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5C88160EFE; Mon, 18 Oct 2021 13:31:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634563919; bh=b6JXoE31IJ/hcB6tiPfLjc6ynqxtXaSuffRpllksqzw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hz1xA94jPqcrM+O37Txu3M/Zgh2FEd9v2HLyAUV8+kAl/C+4ANT2x8aKTsgx1X8/j 9r/wvs2rEalxI27uSeEBZ9iXpF/0KYxffo8Dp087LeeTNUthgOweAt3IytxuUYeEbC 0nKF10Om1zcZYugoSAboB5ZKrAeeOh6NLavGnq+Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Abaci Robot , chongjiapeng , "David S. Miller" Subject: [PATCH 5.4 67/69] qed: Fix missing error code in qed_slowpath_start() Date: Mon, 18 Oct 2021 15:25:05 +0200 Message-Id: <20211018132331.693783807@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132329.453964125@linuxfoundation.org> References: <20211018132329.453964125@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: chongjiapeng commit a5a14ea7b4e55604acb0dc9d88fdb4cb6945bc77 upstream. The error code is missing in this code scenario, add the error code '-EINVAL' to the return value 'rc'. Eliminate the follow smatch warning: drivers/net/ethernet/qlogic/qed/qed_main.c:1298 qed_slowpath_start() warn: missing error code 'rc'. Reported-by: Abaci Robot Fixes: d51e4af5c209 ("qed: aRFS infrastructure support") Signed-off-by: chongjiapeng Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/qlogic/qed/qed_main.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/qlogic/qed/qed_main.c +++ b/drivers/net/ethernet/qlogic/qed/qed_main.c @@ -1238,6 +1238,7 @@ static int qed_slowpath_start(struct qed } else { DP_NOTICE(cdev, "Failed to acquire PTT for aRFS\n"); + rc = -EINVAL; goto err; } }