Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3010527pxb; Mon, 18 Oct 2021 06:33:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySxhUUVQx4I4lBWYfe3G2QZMF/cOC5osRMVTJWrW3EtcE6ZkEXbaQgmOJo9PrAlWrGQr4K X-Received: by 2002:a17:90b:1041:: with SMTP id gq1mr33080476pjb.31.1634563995826; Mon, 18 Oct 2021 06:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634563995; cv=none; d=google.com; s=arc-20160816; b=XqaRG/wMd9aJuiUuLPTI4nlEZn6bNpCC/K+5d62mtqGYilZ5CQ8Pq/3QVhiGXcsZDa WhDjeyHZ+68Ki69ivrOCsRTIEcEQMG6i03xkUqmpVnaEW/f/F4izrxpCNQBrC+BMXvOf 0eyW9wt+8W+U1wbgULueUZTcaKPWluPXVbuiErg9Qa+3dQsJudUQ0/4anHj3lijI+drS 56pPootdWZBGUV0JiPVBcy4UdV/8C/6r0IAEnAiMjfU4EqRW2i4g0Xn37LYwiDbgilzs cvgpKOD8srdBRrZjF2TRzh9Ndoee946Fv+R4ftPplBKkNbmy8l3I5RPGYNO/kJ9JyNFH bDLw== 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=GHGRASCxyj5K2JMU1MEDFlnofKwTR9Bz+rbuK0Zb5OA=; b=in89vFkzqFvryQrDFwAc8bn9enl03C7cjMTn/DUw7y1ifPlMSXBRkQCWlai7zsR0wP hw2Js4FpR9s60qt+5xyseycBXDm9TypO6AZvF7VdTZKVnhD3mqy/Ss0aD7akBj69jW6X w+k340x3GWnLvWdyb7HgPduDwmvmV56PK/hQ/dDyE0rkKxElXuz0hpKLbLE6wI+KkckV 67eGLE/27Adbw9ShP29Azk6/pStvZufNNGa57mfRR+eMzVtdeeXTLnPrAfy2e4GHBXeZ u+mRi9+PP47ZXqYBXBWPqu2GYyexR72TsaqAPaGcrYbXHW8q2mMSKBcmuTVj2vO9P9cq W0QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IrTushxc; 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 u4si22399365plg.26.2021.10.18.06.33.02; Mon, 18 Oct 2021 06:33:15 -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=IrTushxc; 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 S232320AbhJRNeP (ORCPT + 99 others); Mon, 18 Oct 2021 09:34:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:42714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233054AbhJRNcX (ORCPT ); Mon, 18 Oct 2021 09:32:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0BA4861372; Mon, 18 Oct 2021 13:29:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634563749; bh=Nfg6DfDOjFlji1UjBLmwf4WuJV7mNphv5Ne5xefMy/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IrTushxc2E6wIJdGWXeWwaf0SalyNj7YpokHbYrq4Mxd6DmH1RRETlQJm1gHUDDo9 i1QLbLhAwlVX8eSIWhK/ryviNoNvYY5oB1Wu4AxkdivNU+nlM4+WhOBehz46SEXQHr E6/F+egMDYkE7hsr9EP1dEoDhyEWPM05md5aocNQ= 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 4.19 49/50] qed: Fix missing error code in qed_slowpath_start() Date: Mon, 18 Oct 2021 15:24:56 +0200 Message-Id: <20211018132328.150096498@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132326.529486647@linuxfoundation.org> References: <20211018132326.529486647@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 @@ -1067,6 +1067,7 @@ static int qed_slowpath_start(struct qed } else { DP_NOTICE(cdev, "Failed to acquire PTT for aRFS\n"); + rc = -EINVAL; goto err; } }