]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
cxgb4: fix wrong shift.
authorPavel Machek <pavel@denx.de>
Fri, 18 Jun 2021 09:29:48 +0000 (11:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jun 2021 18:56:33 +0000 (11:56 -0700)
While fixing coverity warning, commit dd2c79677375 introduced typo in
shift value. Fix that.

Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>
Fixes: dd2c79677375 ("cxgb4: Fix unintentional sign extension issues")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c

index 22c9ac922ebae9bee87bb403e17ccfaed08557cc..6260b3bebd2bd13afce7bbfc9811ac47123a51da 100644 (file)
@@ -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);
                }
        }