From patchwork Tue Jun 15 09:56:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Machek X-Patchwork-Id: 461011 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94DA8C48BDF for ; Tue, 15 Jun 2021 09:56:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 70F62601FD for ; Tue, 15 Jun 2021 09:56:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231187AbhFOJ65 (ORCPT ); Tue, 15 Jun 2021 05:58:57 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:39724 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230502AbhFOJ65 (ORCPT ); Tue, 15 Jun 2021 05:58:57 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 1F8651C0B76; Tue, 15 Jun 2021 11:56:52 +0200 (CEST) Date: Tue, 15 Jun 2021 11:56:51 +0200 From: Pavel Machek To: kernel list , Colin Ian King , "David S. Miller" , Raju Rangoju , Jakub Kicinski , netdev@vger.kernel.org Cc: stable@vger.kernel.org Subject: [PATCH] cxgb4: fix wrong shift. Message-ID: <20210615095651.GA7479@duo.ucw.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org While fixing coverity warning, commit dd2c79677375c37f8f9f8d663eb4708495d595ef introduced typo in shift value. Fix that. Signed-off-by: Pavel Machek (CIP) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c index 22c9ac922eba..6260b3bebd2b 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c @@ -198,7 +198,7 @@ static void set_nat_params(struct adapter *adap, struct filter_entry *f, WORD_MASK, f->fs.nat_lip[3] | f->fs.nat_lip[2] << 8 | f->fs.nat_lip[1] << 16 | - (u64)f->fs.nat_lip[0] << 25, 1); + (u64)f->fs.nat_lip[0] << 24, 1); } }